LangGraph 1 · Building graphs

Connect nodes

Edges decide which node runs next. START and END mark the entry and exit.

from langgraph.graph import START, END

builder.add_edge(START, "chatbot")
builder.add_edge("chatbot", END)

Official LangGraph 1 documentation

More building graphs commands

All building graphs commands · LangGraph 1 cheatsheet

Was this page helpful?