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.Layout
Assembly: MindFusion.Diagramming
C#
![]() |
---|
public Path FindShortestPath ( |
Visual Basic
![]() |
---|
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 (Nothing in Visual Basic) if there is no Path connecting from and to.