public static enum PGS_Coloring.ColoringAlgorithm extends Enum<PGS_Coloring.ColoringAlgorithm>
Enum Constant and Description |
---|
COARSE
Finds the coarsest coloring of a graph.
|
DSATUR
DSATUR (saturation degree ordering) is a variant on Largest Degree Ordering
where the vertices are ordered in decreasing order by "saturation degree",
defined as the number of distinct colors in the vertex neighborhood.
|
GENETIC
Finds a coloring using a genetic algorithm.
|
LARGEST_DEGREE_FIRST
The largest degree first greedy coloring algorithm.
|
RANDOM
The greedy coloring algorithm with a random vertex ordering.
|
RLF
Recursive largest-first coloring (recommended).
|
RLF_BRUTE_FORCE_4COLOR
Repeatedly calls the recursive largest-first (RLF) algorithm until a
4-coloring is found.
|
SMALLEST_DEGREE_LAST
The smallest degree last greedy coloring algorithm.
|
Modifier and Type | Method and Description |
---|---|
static PGS_Coloring.ColoringAlgorithm |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PGS_Coloring.ColoringAlgorithm[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PGS_Coloring.ColoringAlgorithm RANDOM
public static final PGS_Coloring.ColoringAlgorithm LARGEST_DEGREE_FIRST
This algorithm orders the vertices in decreasing order of degree, the idea being that the large degree vertices can be colored more easily.
public static final PGS_Coloring.ColoringAlgorithm SMALLEST_DEGREE_LAST
public static final PGS_Coloring.ColoringAlgorithm DSATUR
public static final PGS_Coloring.ColoringAlgorithm COARSE
public static final PGS_Coloring.ColoringAlgorithm RLF
public static final PGS_Coloring.ColoringAlgorithm RLF_BRUTE_FORCE_4COLOR
public static final PGS_Coloring.ColoringAlgorithm GENETIC
public static PGS_Coloring.ColoringAlgorithm[] values()
for (PGS_Coloring.ColoringAlgorithm c : PGS_Coloring.ColoringAlgorithm.values()) System.out.println(c);
public static PGS_Coloring.ColoringAlgorithm valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2023. All rights reserved.