Click or drag to resize
EdgeWeightedDirectedCycleGetCycle Method
Returns a directed cycle if the edge-weighted 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<DirectedEdge> GetCycle()

Return Value

Type: IEnumerableDirectedEdge
a directed cycle (as an iterable) if the edge-weighted 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