Add a fixed edge to a graph
Arguments
- graph
A StateGraph object.
- from
Node name or START.
- to
Node name or END.
Examples
schema <- workflow_state(result = list(default = NULL))
g <- state_graph(schema) |>
add_node("step1", function(state, config) list(result = "done")) |>
add_edge(START, "step1") |>
add_edge("step1", END)