V
- Vertices typeE
- Edges typepublic class Coloring<V,E> extends Algorithms<V,E>
Constructor and Description |
---|
Coloring(org.apache.commons.collections15.Factory<edu.uci.ics.jung.graph.Graph<V,E>> factory)
Constructor of the Coloring algorithms.
|
Modifier and Type | Method and Description |
---|---|
int |
chromaticNumberBjorklundHusfeldt(edu.uci.ics.jung.graph.Graph<V,E> g)
Returns the chromatic number of a graph G.
|
int |
chromaticNumberBodlaenderKratsch(edu.uci.ics.jung.graph.Graph<V,E> Ginit)
Returns the chromatic number of a graph G.
|
java.util.Set<java.util.Set<V>> |
graphColoring(edu.uci.ics.jung.graph.Graph<V,E> Ginit)
Returns the chromatic number of a graph G.
|
java.util.Set<java.util.Set<V>> |
greedyGraphColoring(edu.uci.ics.jung.graph.Graph<V,E> Ginit) |
getEdgeFactory, getGraphFactory, getVertexFactory, setEdgeFactoy, setGraphFactoy, setVertexFactoy
public java.util.Set<java.util.Set<V>> greedyGraphColoring(edu.uci.ics.jung.graph.Graph<V,E> Ginit)
Ginit
- the graphpublic java.util.Set<java.util.Set<V>> graphColoring(edu.uci.ics.jung.graph.Graph<V,E> Ginit)
Ginit
- graphpublic int chromaticNumberBodlaenderKratsch(edu.uci.ics.jung.graph.Graph<V,E> Ginit)
Ginit
- graphpublic int chromaticNumberBjorklundHusfeldt(edu.uci.ics.jung.graph.Graph<V,E> g)
G
- graph