Initializes a new instance of the PathFinder class, optionally ignoring the link direction.
Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming
C# Copy Code |
---|
public PathFinder ( |
Visual Basic Copy Code |
---|
Public New ( _ |
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.
MindFusion.Diagramming Developer's Guide | © 2024 MindFusion |