Click or drag to resize
BipartiteXColor Method
Returns the side of the bipartite that vertex v is on.

Namespace: Algs4Net
Assembly: Algs4Net (in Algs4Net.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public bool Color(
	int v
)

Parameters

v
Type: SystemInt32
the vertex

Return Value

Type: Boolean
the side of the bipartition that vertex v is on; two vertices are in the same side of the bipartition if and only if they have the same color
Exceptions
ExceptionCondition
IndexOutOfRangeExceptionunless 0 <= v < V
InvalidOperationExceptionif this method is called when the graph is not bipartite
See Also