Class DepthFirstTopSort<T>
Find Toplogical order of a graph using Depth First Search.
Inherited Members
Namespace: Advanced.Algorithms.Graph
Assembly: Advanced.Algorithms.dll
Syntax
public class DepthFirstTopSort<T>
Type Parameters
| Name | Description |
|---|---|
| T |
Methods
GetTopSort(IDiGraph<T>)
Returns the vertices in Topologically Sorted Order.
Declaration
public List<T> GetTopSort(IDiGraph<T> graph)
Parameters
| Type | Name | Description |
|---|---|---|
| IDiGraph<T> | graph |
Returns
| Type | Description |
|---|---|
| List<T> |