Click or drag to resize
BipartiteOddCycle Method
Returns an odd-length cycle if the graph is not bipartite, and null otherwise.

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

Return Value

Type: IEnumerableInt32
an odd-length cycle if the graph is not bipartite (and hence has an odd-length cycle), and null otherwise
See Also