From 7c974d834b7c6f0e3a0cf1f3d06b97ffc436ec36 Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Mon, 27 Oct 2014 15:47:39 +0200 Subject: Fixes #116 - no star graph for a single node --- scripts/textanalysis.js | 1 + 1 file changed, 1 insertion(+) (limited to 'scripts/textanalysis.js') diff --git a/scripts/textanalysis.js b/scripts/textanalysis.js index e0af38cb..22f8b16c 100644 --- a/scripts/textanalysis.js +++ b/scripts/textanalysis.js @@ -238,6 +238,7 @@ var textAnalyser2 = function (newtext, finalize) { starGraph = (newlinks.length - ANDcount) >= 3 || ((newlinks.length - ANDcount >= 1) && + newlinks.length > 2 && orderStack.length > 1 && orderStack[orderStack.length - 1] != NODE); -- cgit v1.3.1