Note
This is the documentation for the current state of the development branch of rustworkx. The documentation or APIs here can change prior to being released.
rustworkx.TopologicalSorter.done#
- TopologicalSorter.done(nodes)#
Marks a set of nodes returned by “get_ready” as processed.
This method unblocks any successor of each node in nodes for being returned in the future by a call to “get_ready”.
- Parameters:
nodes (list) – A list of node indices to marks as done.
- Raises:
ValueError – If any node in nodes has already been marked as processed by a previous call to this method or node has not yet been returned by “get_ready”.