Class G
- java.lang.Object
-
- org.chocosolver.util.objects.graphs.UndirectedGraph
-
- org.chocosolver.solver.constraints.nary.nvalue.amnv.graph.G
-
- All Implemented Interfaces:
IGraph
- Direct Known Subclasses:
Gi
public abstract class G extends UndirectedGraph
Backtrackable undirected graph- Since:
- 01/01/2014
- Author:
- Jean-Guillaume Fages
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract void
build()
Initialises the graphabstract void
update()
Updates the graphabstract void
update(int idx)
-
Methods inherited from class org.chocosolver.util.objects.graphs.UndirectedGraph
addEdge, addNode, edgeExists, getNbMaxNodes, getNeighOf, getNodes, getPredOrNeighOf, getSuccOrNeighOf, getType, isArcOrEdge, isDirected, removeEdge, removeNode, toString
-
-
-
-
Constructor Detail
-
G
public G(Model model, int nbNodes)
Creates a backtrackable undirected graph of nbNodes nodes- Parameters:
model
- solver providing the backtracking environmentnbNodes
- size of the graph (number of nodes)
-
-