From 651f5c29d25dc9caa24dc596919e62def6a2273e Mon Sep 17 00:00:00 2001 From: LV-426 Date: Sun, 7 Dec 2014 19:46:41 +0200 Subject: removeNodes(): add filter param --- src/textanalysis.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/textanalysis.js') diff --git a/src/textanalysis.js b/src/textanalysis.js index 1dee6ed6..6ecb8f72 100644 --- a/src/textanalysis.js +++ b/src/textanalysis.js @@ -404,7 +404,7 @@ var textAnalyser = function (newtext, finalize) { }); } else { // REINITIALISE GRAPH (DUMB BUT IT WORKS) - graph.removeNodes("temp"); + graph.removeNodes(function(n){ return "temp" == n.state; }); graph.removeLinks("temp"); ret.for_each_node_add(function (node) { -- cgit v1.3.1