|
From: <rv...@us...> - 2011-05-19 14:14:34
|
Revision: 875
http://treebase.svn.sourceforge.net/treebase/?rev=875&view=rev
Author: rvos
Date: 2011-05-19 14:14:27 +0000 (Thu, 19 May 2011)
Log Message:
-----------
targetCount == 0 for the root node, assuming that the edges array does not include the root edge.
Modified Paths:
--------------
trunk/treebase-web/src/main/webapp/scripts/jsphylosvg-min.js
Modified: trunk/treebase-web/src/main/webapp/scripts/jsphylosvg-min.js
===================================================================
--- trunk/treebase-web/src/main/webapp/scripts/jsphylosvg-min.js 2011-05-19 13:31:28 UTC (rev 874)
+++ trunk/treebase-web/src/main/webapp/scripts/jsphylosvg-min.js 2011-05-19 14:14:27 UTC (rev 875)
@@ -757,7 +757,7 @@
// RAV: it is more robust to search for the root by the tree topology
// then by looking for a @root attribute. Valid NeXML tree structures
- // always have one node with fewer than 2 edges pointing into it. The
+ // always have one node without normal edges pointing into it. The
// root attribute is used to indicate that this tree is actually rooted.
// Compare this with nexus/newick: newick strings are always implicitly
// rooted, even if the tree is called a utree or the [&U] token is used.
@@ -769,7 +769,7 @@
targetCount++;
}
}
- if ( targetCount < 2 ) {
+ if ( targetCount == 0 ) {
root = nexNodes[i];
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|