Protocol defining the interface of a decorated node.
Get the current graph state.
Set the graph state.
Update the graph state with new values.
Reset the graph state to an empty dict.
Adds an edge between two nodes that already exist in the graph.
Arguments:
source
- The source node or its name.destination
- The destination node or its name.Get a new instance of the callback class.
Returns:
Callback
: A new instance of the callback class.
Set the callback class that is returned by the get_callback
method and used
as the default callback when no callback is passed to the execute
method.
Arguments:
callback_class
(Type[Callback]
): The callback class to use as the default callback.Protocol defining the interface of a decorated node.
Get the current graph state.
Set the graph state.
Update the graph state with new values.
Reset the graph state to an empty dict.
Adds an edge between two nodes that already exist in the graph.
Arguments:
source
- The source node or its name.destination
- The destination node or its name.Get a new instance of the callback class.
Returns:
Callback
: A new instance of the callback class.
Set the callback class that is returned by the get_callback
method and used
as the default callback when no callback is passed to the execute
method.
Arguments:
callback_class
(Type[Callback]
): The callback class to use as the default callback.