Compare commits

...
Author SHA1 Message Date
Eugene Yurtsev e2660efd12 cross-link graph api 2025-06-27 11:36:57 -04:00
2 changed files with 11 additions and 2 deletions
+5
View File
@@ -23,6 +23,11 @@ LangGraph's underlying graph algorithm uses [message passing](https://en.wikiped
A super-step can be considered a single iteration over the graph nodes. Nodes that run in parallel are part of the same super-step, while nodes that run sequentially belong to separate super-steps. At the start of graph execution, all nodes begin in an `inactive` state. A node becomes `active` when it receives a new message (state) on any of its incoming edges (or "channels"). The active node then runs its function and responds with updates. At the end of each super-step, nodes with no incoming messages vote to `halt` by marking themselves as `inactive`. The graph execution terminates when all nodes are `inactive` and no messages are in transit.
!!! tip
For information on how to use LangGraph's Graph API, see [Use Graph API](https://langchain-ai.github.io/langgraph/how-tos/graph-api/).
### StateGraph
The `StateGraph` class is the main graph class to use. This is parameterized by a user defined `State` object.
+6 -2
View File
@@ -7,7 +7,11 @@
"source": [
"# How to use the graph API\n",
"\n",
"This guide demonstrates the basics of LangGraph's Graph API. It walks through [state](#define-and-update-state), as well as composing common graph structures such as [sequences](#create-a-sequence-of-steps), [branches](#create-branches), and [loops](#create-and-control-loops). It also covers LangGraph's control features, including the [Send API](#map-reduce-and-the-send-api) for map-reduce workflows and the [Command API](#combine-control-flow-and-state-updates-with-command) for combining state updates with \"hops\" across nodes."
"This guide demonstrates the basics of [LangGraph's Graph API](../../concepts/low_level). It walks through [state](#define-and-update-state), as well as composing common graph structures such as [sequences](#create-a-sequence-of-steps), [branches](#create-branches), and [loops](#create-and-control-loops). It also covers LangGraph's control features, including the [Send API](#map-reduce-and-the-send-api) for map-reduce workflows and the [Command API](#combine-control-flow-and-state-updates-with-command) for combining state updates with \"hops\" across nodes.\n",
"\n",
"!!! tip\n",
"\n",
" For conceptual information on the Graph API, see [Graph API](../../concepts/low_level)."
]
},
{
@@ -3416,7 +3420,7 @@
],
"metadata": {
"kernelspec": {
"display_name": ".venv",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},