summaryrefslogtreecommitdiff
path: root/scripts/textanalysis.js
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2014-10-27 15:47:39 +0200
committerAlon Levy <alon@pobox.com>2014-10-27 15:47:39 +0200
commit7c974d834b7c6f0e3a0cf1f3d06b97ffc436ec36 (patch)
tree1691764f662cd055aa7c2d1f08136383fba00924 /scripts/textanalysis.js
parent7c8f6d88314c6fe2ec1859401407853bd7f3a41d (diff)
Fixes #116 - no star graph for a single node
Diffstat (limited to 'scripts/textanalysis.js')
-rw-r--r--scripts/textanalysis.js1
1 files changed, 1 insertions, 0 deletions
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);