ASP.NET Pack Programmer's Guide
GridLayout.UseLongestPath Property
See Also
 





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

 Syntax

C#  Copy Code

public bool UseLongestPath { get; set; }

Visual Basic  Copy Code

Public Property UseLongestPath As Boolean

 Property Value

true to look for the longest path in the graph and arrange nodes around it; otherwise, false.

 Remarks

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.

 See Also

GridLayout Members
GridLayout Class
MindFusion.Diagramming.Layout Namespace