Finds and returns the shortest path between two DiagramNode elements, considering the Weight of the nodes, the Weight of the links or both.
Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming
C# Copy Code |
---|
public Path FindShortestPath ( |
Visual Basic Copy Code |
---|
Public Function FindShortestPath( _ |
The first DiagramNode in the Path.
The last DiagramNode in the Path.
If true, the Path with minimal total weight is found, summing the Weight of nodes in the Path.
If true, the Path with minimal total weight is found, summing the Weight of links in the Path.
A Path instance that represents the shortest Path found or null if there is no Path connecting from and to.
Diagramming for .NET MAUI Guide | © 2024 MindFusion |