Click or drag to resize
DirectedCycleGetCycle Method
Returns a directed cycle if the digraph has a directed cycle, and null otherwise.

Namespace: Algs4Net
Assembly: Algs4Net (in Algs4Net.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public IEnumerable<int> GetCycle()

Return Value

Type: IEnumerableInt32
a directed cycle (as an iterable) if the digraph has a directed cycle, and null otherwise
Remarks
A property in place of a method would be better; however since the class Cycle has defined GetCycle(), the convention follows.
See Also