Langgraph – Edges
Edges define how the logic is routed and how the graph decides to stop. This is a big part of how your agents work and how different nodes communicate with each other. There are a few key types of edges:
- Normal Edges: Go directly from one node to the next
- Conditional Edges: Call a function to determine which node(s) to go to next
- Entry Point: Which node to call first when user input arrives
- Conditional Entry Point: Call a function to determine which node(s) to call first when user input arrives
A node can have MULTIPLE outgoing edges. If a node has multiple out-going nodes, all of those destination nodes will be executed in parallel as a part of the next superstep.