QDpy
Loading...
Searching...
No Matches
qdpy.algorithms.gflownet.ConstructiveDAG Class Reference

Define a finite rooted graph of legal construction steps. More...

Public Member Functions

 states (self)
 terminals (self)

Detailed Description

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.

Member Function Documentation

◆ states()

qdpy.algorithms.gflownet.ConstructiveDAG.states ( self)
Return states in topological order starting at the root.

Definition at line 64 of file gflownet.py.

◆ terminals()

qdpy.algorithms.gflownet.ConstructiveDAG.terminals ( self)
Return terminal states in topological order.

Definition at line 69 of file gflownet.py.


The documentation for this class was generated from the following file: