V - the graph vertex typeE - the graph edge typepublic class GreedyColoring<V,E> extends IntArrayGraphAlgorithm<V,E> implements ApproximationAlgorithm<Integer,V>
| Modifier and Type | Field and Description |
|---|---|
static int |
BEST_ORDER |
static int |
LARGEST_SATURATION_FIRST_ORDER |
static int |
NATURAL_ORDER |
static int |
SMALLEST_DEGREE_LAST_ORDER |
_neighbors, _vertexToPos, _vertices| Constructor and Description |
|---|
GreedyColoring(Graph<V,E> g)
Create a new greedy coloring algorithm
|
GreedyColoring(Graph<V,E> g,
int method)
Create a new greedy coloring algorithm
|
| Modifier and Type | Method and Description |
|---|---|
Integer |
getLowerBound(Map<V,Object> optionalData)
Get the result.
|
Integer |
getUpperBound(Map<V,Object> optionalData)
Get the result.
|
boolean |
isExact()
Checks if the algorithm is an exact algorithm.
|
public static final int BEST_ORDER
public static final int NATURAL_ORDER
public static final int SMALLEST_DEGREE_LAST_ORDER
public static final int LARGEST_SATURATION_FIRST_ORDER
public GreedyColoring(Graph<V,E> g)
g - the graphpublic Integer getLowerBound(Map<V,Object> optionalData)
ApproximationAlgorithmgetLowerBound in interface ApproximationAlgorithm<Integer,V>optionalData - optional datapublic Integer getUpperBound(Map<V,Object> optionalData)
ApproximationAlgorithmgetUpperBound in interface ApproximationAlgorithm<Integer,V>optionalData - optional datapublic boolean isExact()
ApproximationAlgorithmisExact in interface ApproximationAlgorithm<Integer,V>Copyright © 2017. All rights reserved.