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





Enumerates all paths that exist between two DiagramNode objects.

Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming

 Syntax

C#  Copy Code

public IEnumerable<Path> EnumAllPaths (
    DiagramNode from,
    DiagramNode to
)

Visual Basic  Copy Code

Public Function EnumAllPaths( _
    from As DiagramNode, _
    to As DiagramNode _
) As IEnumerable(Of Path)

 Parameters

from

The first DiagramNode in the path.

to

The last DiagramNode in the path.

 Return Value

A collection of Path objects. If no paths are found, the collection is empty.

 Remarks

The returned Path instances include the from and to nodes.

The Enum* methods of PathFinder immediately yield each path once found, as opposed to Find* methods which collect them in a list.

 See Also