LangChain Reference home page
Search...
โK
Ask AI
GitHub
Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
โI
Chat LangChain
What can I help with?
Enter
to send
ยท
Shift+Enter
new line
What are deep agents and how do I get started?
How do I build a React app around a Deep Agent?
How do I stream subagent output to my frontend with useStream?
Menu
Navigation
Projects
LangGraph
Web
Channels
Pregel
Prebuilt
Remote
Stream
React SDK
Vue SDK
Svelte SDK
Angular SDK
LangGraph SDK
Client
Auth
React
Logging
React Ui
Server
LangGraph Checkpoint
LangGraph Checkpoint MongoDB
LangGraph Checkpoint Postgres
LangGraph Checkpoint Redis
Shallow
Store
LangGraph Checkpoint SQLite
LangGraph Checkpoint Validation
Cli
LangGraph API
LangGraph CLI
LangGraph CUA
Utils
LangGraph Supervisor
LangGraph Swarm
Language
Python
JavaScript
Theme
Light
Dark
JavaScript
@langchain/langgraph
web
Graph
Class
v1.7.4 (latest)
โ
Since v1.5
Graph
Copy
class
Graph
Constructors
constructor
constructor
โ
Graph
<
N
,
RunInput
,
RunOutput
,
NodeSpecType
,
C
>
Properties
property
branches
:
Record
<
string
,
Record
<
string
,
Branch
<
RunInput
,
N
,
any
>>>
property
compiled
:
boolean
property
edges
:
Set
<[
N
|
"__start__"
,
N
|
"__end__"
]>
property
entryPoint
:
string
property
nodes
:
Record
<
N
,
NodeSpecType
>
property
allEdges
:
Set
<[
string
,
string
]>
Methods
method
addConditionalEdges
โ
this
method
addEdge
โ
this
method
addNode
โ
Graph
<
N
|
K
,
RunInput
,
RunOutput
>
method
compile
โ
CompiledGraph
<
N
,
RunInput
,
RunOutput
,
Record
<
string
,
any
>,
any
,
any
,
unknown
,
unknown
,
any
,
TTransformers
>
method
validate
method
warnIfCompiled
deprecated
method
setEntryPoint
โ
this
deprecated
method
setFinishPoint
โ
this
View source on GitHub
Version History