Search
FlowChart.FindShortestPath Method
See Also
 



Finds the shortest path between the specified nodes.

 Syntax

VB6  Copy Code

Public Function FindShortestPath( _
    ByVal src As Object, _
    ByVal dest As Object _
) As IArrows

C++  Copy Code

public:
IArrows* FindShortestPath (
    IDispatch* src,
    IDispatch* dest
)

 Parameters

src
A node at which the path starts.
dest
A node at which the path ends.

 Return Value

A collection of Arrow objects representing the shortest path.

 Remarks

Finds the shortest path between two objects. The path is a collection of arrows through which the source object is connected with the destination. The intermediate objects can be found through the arrows' source and destination properties. The path containing the smallest number of arrows is considered the shortest. If there are more paths with the same smallest number of arrows they are buffered. Paths can be retrieved from the buffer using PathCount and GetPath.

 See Also