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