nodekit.Graph
pydantic-model
¶
Fields:
-
type(Literal['Graph']) -
nodekit_version(str) -
nodes(dict[NodeId, Node | Graph]) -
transitions(dict[NodeId, Transition]) -
start(NodeId) -
registers(dict[RegisterId, LeafValue]) -
annotation(str | None)
Validators:
-
validate_nodekit_version→nodekit_version -
check_graph_is_valid
annotation
pydantic-field
¶
An optional, user-defined annotation for the Graph that may be useful for debugging or analysis purposes.
nodes
pydantic-field
¶
The set of Nodes in the Graph, by NodeId. Note that a Graph can contain other Graphs as Nodes.
transitions
pydantic-field
¶
The set of Transitions in the Graph, by NodeId.