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





Enumerates all paths that exist between two DiagramNode objects.

Namespace: MindFusion.Diagramming
Package: MindFusion.Diagramming

 Syntax

C#  Copy Code

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

Visual Basic  Copy Code

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

 Parameters

from

The first DiagramNode in the Path.

to

The last DiagramNode in the Path.

maxPaths

The maximum number of paths to find.

 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