提交 b8d125f5 编写于 作者: T TornjV

Change tree orientation

上级 4d6a7379
......@@ -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.
先完成此消息的编辑!
想要评论请 注册