Finds and returns the shortest path between two DiagramNode elements, considering the Weight of the nodes, the Weight of the links or both.
Namespace: com.mindfusion.diagramming
Package: com.mindfusion.diagramming
Java Copy Code |
---|
public Path findShortestPath ( |
The DiagramNode where the path should start.
The DiagramNode where the path should end.
true if the Weight attribute of nodes should be considered, otherwise false.
true if the Weight attribute of links should be considered, otherwise false.
A Path object representing the found path, or null if there isn't any path connecting the specified nodes.