Skip to content

Commit

Permalink
Minor adjustments for the knot layout.
Browse files Browse the repository at this point in the history
  • Loading branch information
stu224382 committed Sep 25, 2024
1 parent badeac4 commit eb9fc01
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,9 @@ public void layout(final ElkNode layoutGraph, final IElkProgressMonitor progress
progressMonitor.logGraph(layoutGraph, "Initialization");



////////////////////////////////////////////////////////////////////////////////////////////////
// Main process:

// SETUP ROTATION:

// First improvement that will already reduce the stress significantly.
Expand Down Expand Up @@ -192,8 +191,13 @@ public void layout(final ElkNode layoutGraph, final IElkProgressMonitor progress

// Can happen that in one iteration the stress gets worse, but over multiple iterations it gets better.
// Therefore no further termination criterion.
} while((count <= iterationLimit));
} while((count < iterationLimit));

// Closing rotation after the last shift movement:
for(ElkNode node : layoutGraph.getChildren()) {
stressMinimizingRotation(node);
}



// FURTHER OPTIMIZATIONS:
Expand All @@ -215,7 +219,7 @@ public void layout(final ElkNode layoutGraph, final IElkProgressMonitor progress
// Individual for each node.
}

progressMonitor.done();
progressMonitor.done(); /**/
}


Expand Down

0 comments on commit eb9fc01

Please sign in to comment.