csMark.js (425B)
1 "use strict"; 2 3 Object.defineProperty(exports, "__esModule", { 4 value: true 5 }); 6 exports.csMark = csMark; 7 8 var _csFlip = require("./csFlip.js"); 9 10 /** 11 * Marks the node at w[j] 12 * 13 * @param {Array} w The array 14 * @param {Number} j The array index 15 * 16 * Reference: http://faculty.cse.tamu.edu/davis/publications.html 17 */ 18 function csMark(w, j) { 19 // mark w[j] 20 w[j] = (0, _csFlip.csFlip)(w[j]); 21 }