Class CycleDetector<T>
Cycle detection using Depth First Search.
Inherited Members
Namespace: Advanced.Algorithms.Graph
Assembly: Advanced.Algorithms.dll
Syntax
public class CycleDetector<T>
Type Parameters
Name | Description |
---|---|
T |
Methods
HasCycle(DiGraph<T>)
Returns true if a cycle exists
Declaration
public bool HasCycle(DiGraph<T> graph)
Parameters
Type | Name | Description |
---|---|---|
DiGraph<T> | graph |
Returns
Type | Description |
---|---|
Boolean |