diff --git a/js/module/directed_graph.js b/js/module/directed_graph.js index 5782cd85689be6ce3d85edbbf8c7f53aa21b2c17..42923fc30f60e4e2e32567ad1fa3d89125dc3ab2 100644 --- a/js/module/directed_graph.js +++ b/js/module/directed_graph.js @@ -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++;