DirectedCycleGetCycle Method |
Returns a directed cycle if the digraph has a directed cycle, and null otherwise.
Namespace: Algs4NetAssembly: Algs4Net (in Algs4Net.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic IEnumerable<int> GetCycle()
Return Value
Type:
IEnumerableInt32a directed cycle (as an iterable) if the digraph has a directed cycle,
and
null otherwise
RemarksA property in place of a method would be better; however since the class
Cycle
has defined
GetCycle(), the convention follows.
See Also