提交 2ff54a47 编写于 作者: V Veljko Tornjanski

Merge pull request #72 from TornjV/fix/tree

Change tree orientation
......@@ -111,7 +111,7 @@ DirectedGraphTracer.prototype = $.extend(true, Object.create(Tracer.prototype),
var wgap = 1 / (maxDepth - 1);
var dfs = function (node, depth, top, bottom) {
place(node, depth * wgap, (top + bottom) / 2);
place(node, top + bottom, depth * wgap);
var children = 0;
for (var i = 0; i < G[node].length; i++) {
if (G[node][i]) children++;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册