Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,10 @@ public void process (LGraph graph, IElkProgressMonitor progressMonitor) {

}

// only split if there are more nodes than the resulting sub-layers
// only split if there enough nodes to fill the resulting sub-layers
// an alternative would be to reduce N for this layer, this may or may
// not be desirable
if (graph.getLayers().get(i).getNodes().size() > N) {
if (graph.getLayers().get(i).getNodes().size() >= N) {

List<Layer> subLayers = new ArrayList<>();
// add current layer as first sub-layer
Expand Down