Interface TopologicalOrderGraph
- All Superinterfaces:
BaseTopologicalOrderGraph
- All Known Implementing Classes:
DefaultTopologicalOrderGraph
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface ai.timefold.solver.core.impl.domain.variable.declarative.BaseTopologicalOrderGraph
BaseTopologicalOrderGraph.NodeTopologicalOrder -
Method Summary
Modifier and TypeMethodDescriptionvoidaddEdge(int from, int to) Called when a graph edge is added.voidcommitChanges(BitSet changed) Called when all edge modifications are queued.voidforEachEdge(TopologicalOrderGraph.EdgeConsumer edgeConsumer) voidremoveEdge(int from, int to) Called when a graph edge is removed.default <Solution_>
voidwithNodeData(List<EntityVariablePair<Solution_>> nodes) Called on graph creation to supply metadata about the graph nodes.Methods inherited from interface ai.timefold.solver.core.impl.domain.variable.declarative.BaseTopologicalOrderGraph
getTopologicalOrder, isLooped, nodeForwardEdges
-
Method Details
-
commitChanges
Called when all edge modifications are queued. After this method returns,BaseTopologicalOrderGraph.getTopologicalOrder(int)must be accurate for every node in the graph. -
withNodeData
Called on graph creation to supply metadata about the graph nodes.- Parameters:
nodes- A list of entity/variable pairs, where the nth item in the list corresponds to the node with id n in the graph.
-
addEdge
void addEdge(int from, int to) Called when a graph edge is added. The operation is added to a batch and only executed whencommitChanges(BitSet)is called.BaseTopologicalOrderGraph.getTopologicalOrder(int)is allowed to be invalid when this method returns. -
removeEdge
void removeEdge(int from, int to) Called when a graph edge is removed. The operation is added to a batch and only executed whencommitChanges(BitSet)is called.BaseTopologicalOrderGraph.getTopologicalOrder(int)is allowed to be invalid when this method returns. -
forEachEdge
-