Search
PathFinder.FindShortestPath Method (DiagramNode, DiagramNode)
See Also
 





Finds and returns the shortest Path between the specified DiagramNode objects.

Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming

 Syntax

C#  Copy Code

public Path FindShortestPath (
    DiagramNode from,
    DiagramNode to
)

Visual Basic  Copy Code

Public Function FindShortestPath( _
    from As DiagramNode, _
    to As DiagramNode _
) As Path

 Parameters

from
The first DiagramNode in the Path.
to
The last DiagramNode in the Path.

 Return Value

A Path instance that represents the shortest path found; null (Nothing in Visual Basic) if there is no path connecting from and to.

 See Also