Skip to content

Commit

Permalink
Merge pull request #3 from Moka42/sweeping_crashfix
Browse files Browse the repository at this point in the history
Fix a crash when using EfficientSugiyamaLayoutAlgorithm in sweeping operation.
  • Loading branch information
KeRNeLith authored Aug 5, 2020
2 parents 13c2e2e + 20fbe4f commit 440b90b
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ public partial class EfficientSugiyamaLayoutAlgorithm<TVertex, TEdge, TGraph>
/// </summary>
private void DoCrossingMinimizations()
{
if (_layers.Count < 2)
return;

int prevCrossings = int.MaxValue;
int crossings = int.MaxValue;
int phase = 1;
Expand Down

0 comments on commit 440b90b

Please sign in to comment.