Click or drag to resize

DepthFirstSearchPredecessors Property

Main output of the depth first search is the predecessor tree forest.

Each root vertex in a predecessor tree returns -1. The remaining vertices return the index of its predecessor in the tree, i.e.

Predecessors[4] = 2
means that the index-4 vertex has the index-2 vertex as its predecessor.

Namespace:  DHI.Mike1D.Generic.Graph
Assembly:  DHI.Mike1D.Generic (in DHI.Mike1D.Generic.dll) Version: 19.0.0.0 (11.1.1.1111)
Syntax
public int[] Predecessors { get; }

Property Value

Type: Int32
See Also