Gets or sets a value indicating whether the algorithm should arrange nodes around the longest path in the graph.
Namespace: MindFusion.Diagramming.Layout
Package: MindFusion.Diagramming
C# Copy Code |
---|
public bool UseLongestPath { get; set; } |
Visual Basic Copy Code |
---|
Public Property UseLongestPath As Boolean |
true to look for the longest path in the graph and arrange nodes around it; otherwise, false.
Initially, the algorithm places nodes and links from the longest path in the graph at the grid diagonal, and arranges the rest of the nodes around the diagonal. Large graphs with many links could contain hundreds of thousands of possible paths, so finding the longest one would be very time-consuming. Disabling this property will let you skip the path-finding part of the algorithm, which will make it work much faster.