Method TopologicalOrderList
TopologicalOrderList()
Get an array of all vertex numbers in topological order.
Note: This method throws InvalidOperationException if the graph is not a DAG.
public List<int> TopologicalOrderList()
Returns
Exceptions
- InvalidOperationException
Cycle is detected