DroidDiagram Programmer's Guide
PathFinder.findShortestPath Method (DiagramNode, DiagramNode, boolean, boolean)
See Also
 






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

 Syntax

Java  Copy Code

public Path findShortestPath (
    DiagramNode from,
    DiagramNode to,
    boolean useNodeWeights,
    boolean useLinkWeights
)

 Parameters

from

The DiagramNode where the path should start.

to

The DiagramNode where the path should end.

useNodeWeights

true if the Weight attribute of nodes should be considered, otherwise false.

useLinkWeights

true if the Weight attribute of links should be considered, otherwise false.

 Return Value

A Path object representing the found path, or null if there isn't any path connecting the specified nodes.

 See Also

findShortestPath Method Overload List
PathFinder Members
PathFinder Class
com.mindfusion.diagramming Namespace