From e58e0c0b520d4abb971d3917712340330e5d85ff Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Thu, 9 Oct 2014 15:06:33 +0300 Subject: Allow chainlink when no last node is there Fixes #86 Well, almost - the center node contains the 'a and b and c' (with extra spaces too). node test_analyzer.js '#a and #b and #c are cool' digraph { BUBBLE; a; b; c; "new node"; "a and b and c are cool"; a -> "a and b and c are cool"; b -> "a and b and c are cool"; c -> "a and b and c are cool"; } --- scripts/textanalysis.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/textanalysis.js') diff --git a/scripts/textanalysis.js b/scripts/textanalysis.js index 68881fcc..3527affe 100644 --- a/scripts/textanalysis.js +++ b/scripts/textanalysis.js @@ -262,7 +262,7 @@ var textAnalyser2 = function (newtext, finalize) { addNode("", "bubble","temp"); } - abnormalGraph = (newlinks.length - ANDcount) >= 3; + abnormalGraph = (newlinks.length - ANDcount) >= 2; //0-N ORDER STACK for (m = 0; m < orderStack.length - 1; m++) { -- cgit v1.3.1