Algs4Net Class Library Documentation
Algs4Net Class Library Documentation
Algs4Net
Bipartite Class
Bipartite Methods
Color Method
MainTest Method
OddCycle Method
Bipartite
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
Exceptions
Exception
Condition
IndexOutOfRangeException
unless
0 <= v < V
InvalidOperationException
if this method is called when the graph
See Also
Reference
Bipartite Class
Algs4Net Namespace