LangGraph · Function
add_edge
StateGraph.add_edge creates a directed connection between graph nodes. The destination runs after one source finishes, or after all sources finish when you provide several start nodes.
Last updated
- Since
- v1.2
Syntax
add_edge(self, start_key: str | list[str], end_key: str) -> SelfIn-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
StateGraphSTARTENDcompileadd_node