diff --git a/lib/order/index.js b/lib/order/index.js index 4ac2d9fa..052ca8a5 100644 --- a/lib/order/index.js +++ b/lib/order/index.js @@ -37,17 +37,18 @@ function order(g) { var bestCC = Number.POSITIVE_INFINITY, best; - for (var i = 0, lastBest = 0; lastBest < 4; ++i, ++lastBest) { - sweepLayerGraphs(i % 2 ? downLayerGraphs : upLayerGraphs, i % 4 >= 2); +// for (var i = 0, lastBest = 0; lastBest < 4; ++i, ++lastBest) { +// sweepLayerGraphs(i % 2 ? downLayerGraphs : upLayerGraphs, i % 4 >= 2); - layering = util.buildLayerMatrix(g); - var cc = crossCount(g, layering); - if (cc < bestCC) { - lastBest = 0; - best = _.cloneDeep(layering); - bestCC = cc; - } - } +// layering = util.buildLayerMatrix(g); +// var cc = crossCount(g, layering); +// if (cc < bestCC) { +// lastBest = 0; +// best = _.cloneDeep(layering); +// bestCC = cc; +// } +// } + best = _.cloneDeep(util.buildLayerMatrix(g)); assignOrder(g, best); }