diff --git a/lib/layout.js b/lib/layout.js index 5846495b..bcbf6886 100644 --- a/lib/layout.js +++ b/lib/layout.js @@ -31,7 +31,7 @@ function runLayout(g, time, opts) { time(" removeSelfEdges", () => removeSelfEdges(g)); time(" acyclic", () => acyclic.run(g)); time(" nestingGraph.run", () => nestingGraph.run(g)); - time(" rank", () => rank(util.asNonCompoundGraph(g))); + time(" rank", () => rank(g)); time(" injectEdgeLabelProxies", () => injectEdgeLabelProxies(g)); time(" removeEmptyRanks", () => removeEmptyRanks(g)); time(" nestingGraph.cleanup", () => nestingGraph.cleanup(g)); diff --git a/lib/position/index.js b/lib/position/index.js index 2258081c..64de29b5 100644 --- a/lib/position/index.js +++ b/lib/position/index.js @@ -6,8 +6,6 @@ let positionX = require("./bk").positionX; module.exports = position; function position(g) { - g = util.asNonCompoundGraph(g); - positionY(g); Object.entries(positionX(g)).forEach(([v, x]) => g.node(v).x = x); }