Routes the given edges.

Namespace: yWorks.yFiles.Layout.Router.Polyline
Assembly: yWorks.yFilesSilverlight.Algorithms (in yWorks.yFilesSilverlight.Algorithms.dll) Version: 2.4.0.0

Syntax

C#
public virtual void Route( EdgeList edges, PathSearchResult pathSearchResult )
Visual Basic
Public Overridable Sub Route ( _ edges As EdgeList, _ pathSearchResult As PathSearchResult _ )

Parameters

edges
Type: yWorks.yFiles.Algorithms..::..EdgeList
The edges to route.
pathSearchResult
Type: yWorks.yFiles.Layout.Router.Polyline..::..PathSearchResult
The path search results containing the Path objects for the edges.

Remarks

Routes the given edges. Initialize(PathSearchConfiguration) must be called first.

As a first step, the SegmentInfo s of all edge paths are distributed to Channel s. After that, the segments in each of these Channels are sorted and locations are assigned respecting the segment's location ranges by calling the subsequent methods:

  1. OptimizeSegmentOrder(Channel)
  2. CalculateSegmentLocations(Channel)
  3. AdjustSegmentLocations(Channel)

Finally the control points for the paths are calculated.

Exceptions

ExceptionCondition
System..::..InvalidOperationExceptionIf the locations are not inside of the segment's location range.

See Also