Skip to content

Commit 0ca1bf3

Browse files
committed
added a comment about crossing edges in large trees
1 parent 9d7de85 commit 0ca1bf3

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

util/template_visualize_rst_tree.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161

6262
tree.numLeaves = 0;
6363
if ( !tree.children ) {
64-
tree.numLeaves = 1;
64+
tree.numLeaves = 1; // count self as a leaf
6565
}
6666

6767
for (idx in tree.children) {

util/visualize_rst_tree.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010
1111
For the D3.js license, see LICENSE_d3.txt or
1212
https://github.com/mbostock/d3/blob/master/LICENSE for the D3.js license.
13+
14+
Note: on very large trees, edges may cross. This appears to be a feature of
15+
the layout algorithm. It could be avoided by having curved edges, but I don't
16+
think functionality for computing the necessary paths is available.
1317
'''
1418

1519
import argparse

0 commit comments

Comments
 (0)