Skip to content

Commit

Permalink
Readded second node sorting.
Browse files Browse the repository at this point in the history
I could solve this maybe by doing the inversePortProcessor after this.
  • Loading branch information
soerendomroes committed Aug 19, 2024
1 parent 72b658b commit 4ef8eb5
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@ public void process(final LGraph graph, final IElkProgressMonitor progressMonito
progressMonitor.log("Node " + node + " ports: " + node.getPorts());
}
}
// Sort nodes after port sorting to also sort dummy feedback nodes from the current layer correctly.
comparator = new ModelOrderNodeComparator(previousLayer,
graph.getProperty(LayeredOptions.CONSIDER_MODEL_ORDER_STRATEGY),
graph.getProperty(LayeredOptions.CONSIDER_MODEL_ORDER_LONG_EDGE_STRATEGY));
Collections.sort(layer.getNodes(), comparator);

progressMonitor.log("Layer " + layerIndex + ": " + layer);
layerIndex++;
Expand Down

0 comments on commit 4ef8eb5

Please sign in to comment.