UNPKG

310 BJavaScriptView Raw
1import { csFlip } from './csFlip'
2
3/**
4 * Marks the node at w[j]
5 *
6 * @param {Array} w The array
7 * @param {Number} j The array index
8 *
9 * Reference: http://faculty.cse.tamu.edu/davis/publications.html
10 */
11export function csMark (w, j) {
12 // mark w[j]
13 w[j] = csFlip(w[j])
14}