|
QDpy
|
Define a finite rooted graph of legal construction steps. More...
Public Member Functions | |
| states (self) | |
| terminals (self) | |
Define a finite rooted graph of legal construction steps.
Provide a deterministic construction graph with terminal leaves.
:param root: Hashable starting state.
:param successors: Ordered mapping from every state to its distinct
successors. Use an empty sequence for a terminal state. Multiple
paths may lead to the same state. All states must be reachable.
An explicit stop action can lead to a separate terminal node.
Definition at line 23 of file gflownet.py.
| qdpy.algorithms.gflownet.ConstructiveDAG.states | ( | self | ) |
Return states in topological order starting at the root.
Definition at line 64 of file gflownet.py.
| qdpy.algorithms.gflownet.ConstructiveDAG.terminals | ( | self | ) |
Return terminal states in topological order.
Definition at line 69 of file gflownet.py.