Click or drag to resize
TopologicalRank Method
The the rank of vertex v in the topological order; -1 if the digraph is not a DAG

Namespace: Algs4Net
Assembly: Algs4Net (in Algs4Net.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public int Rank(
	int v
)

Parameters

v
Type: SystemInt32
the vertex under consideration

Return Value

Type: Int32
the position of vertex v in a topological order of the digraph; -1 if the digraph is not a DAG
Exceptions
ExceptionCondition
IndexOutOfRangeExceptionunless v is between 0 and V - 1
See Also