Initializes a new instance of the PathFinder class, optionally ignoring the link direction.
Namespace: MindFusion.Diagramming.Wpf
Assembly: MindFusion.Diagramming.Wpf
C# Copy Code |
---|
public PathFinder ( |
Visual Basic Copy Code |
---|
Public New ( _ |
Specifies whether the direction of links should be considered when looking for paths or cycles.
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.
WpfDiagram Programmer's Guide | © 2024 MindFusion |