csMark.js 423 B

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