Search
LayeredLayout.TimeLimit Property
See Also
 





Gets or sets a time-out value for the path-finding part of the layered layout algorithm.

Namespace: MindFusion.Diagramming.Layout
Assembly: MindFusion.Diagramming.Layout

 Syntax

C#  Copy Code

public long TimeLimit { get; set; }

Visual Basic  Copy Code

Public Property TimeLimit As Long

 Property Value

An integer value specifying time-out in milliseconds. The default is 10000 (10 seconds).

 Remarks

The layered layout algorithm arranges graph nodes and links along the longest path in the graph. Large graphs with many links could contain hundreds of thousands of possible paths, so finding the longest one would be very time-consuming. When the time-out set with this property occurs, the path-finding routine stops and the layout algorithm uses the longest path known at that moment. Usually, for graphs containing several hundreds of nodes, 1-2 seconds are enough to find a long-enough path to produce nice layered layout.

 See Also