An edge is a connection between two nodes in a graph. It represents a relationship, such as friendship, or a transition in which one node’s output becomes another node’s input. section 10.2.2 section 8.2.2
The meaning of an edge depends on the graph being modeled:
- A social-network edge can represent a relationship between two people; friendship is shown as an undirected connection. section 10.2.2
- A LangGraph edge is directed, showing which node executes first and where its output may flow next. section 10.2.2
- Together with nodes and graph state, edges organize an application as a sequence of state-transforming actions. section 10.2.2
A workflow edge
Imagine a LangGraph workflow with one node that retrieves information and another that generates a response. An arrow from the retrieval node to the response node means the response action can receive the retrieval node’s updated state. A similar graph can compute the sum of squares by connecting action nodes in execution order. section 10.2.2
Figure 10.4 In LangGraph, nodes take in the graph state and modify it.
Use the diagram to trace how directed edges connect LangGraph nodes while state moves through the workflow. section 10.2.2

















