Search
PathFinder Constructor (Diagram, Boolean)
See Also
 





Initializes a new instance of the PathFinder class, optionally ignoring the link direction.

Namespace: MindFusion.Diagramming.Wpf
Assembly: MindFusion.Diagramming.Wpf

 Syntax

C#  Copy Code

public PathFinder (
    Diagram diagram,
    bool ignoreDirection
)

Visual Basic  Copy Code

Public New ( _
    diagram As Diagram, _
    ignoreDirection As Boolean _
)

 Parameters

diagram
A Diagram instance in which to look for paths or cycles.
ignoreDirection

Specifies whether the direction of links should be considered when looking for paths or cycles.

 Remarks

The PathFinder methods look for paths and cycles in the Diagram instance specified with the first argument. By default, the diagram is treated as a directed graph and the direction of links is considered when looking for a path, that is, a path continues from a node only through its OutgoingLinks.

To ignore the direction of links, pass true as a value of the ignoreDirection argument; then the path-finding algorithm will look for paths both through the OutgoingLinks and  IncomingLinks collections of nodes. If you do not want to ignore the direction of links you can use the alternative constructor.

 See Also