Algs4Net Class Library Documentation
Algs4Net Class Library Documentation
Algs4Net
BipartiteX Class
BipartiteX Methods
Color Method
MainTest Method
OddCycle Method
BipartiteX
Color 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#
Copy
public
bool
Color
(
int
v
)
Parameters
v
Type:
System
Int32
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
Exception
Condition
IndexOutOfRangeException
unless
0 <= v < V
InvalidOperationException
if this method is called when the graph is not bipartite
See Also
Reference
BipartiteX Class
Algs4Net Namespace