V - The vertex typeE - The edge typepublic class Bipartite<V extends Vertex,E extends Edge<V>>
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
boolean |
isBipartite()
Determines whether an undirected graph is bipartite and finds either a
bipartition or an odd-length cycle.
|