Package org.graph4j.coloring
Class Node
java.lang.Object
org.graph4j.coloring.Node
A node in the backtrack coloring search tree.
- Author:
- Cristian Frăsinaru
-
Constructor Summary
ConstructorsConstructorDescriptionNode(ExactColoringBase alg, Node parent, int vertex, int color, Domain[] domains, Coloring coloring, boolean removeSymmetricalColors) -
Method Summary
-
Constructor Details
-
Node
public Node(ExactColoringBase alg, Node parent, int vertex, int color, Domain[] domains, Coloring coloring, boolean removeSymmetricalColors)
-
-
Method Details
-
prepare
public void prepare() -
domains
- Returns:
- the domains.
-
domain
- Parameters:
pos- the position in the domains array.- Returns:
- the domain.
-
coloring
- Returns:
- the coloring.
-
parent
- Returns:
- the parent.
-
getState
public org.graph4j.coloring.FailedState getState() -
toString
-