Skip to content
masterclass Buddy

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) -> Self

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • StateGraph
  • START
  • END
  • compile
  • add_node

Source: add_edge | langgraph | LangChain Reference. Checked 2026-11-03.