What LangGraph feature allows the agent loop to cycle back to an earlier node rather than terminating?
Same topic, related formats. Practice these next.
Same topic, related formats. Practice these next.
Conditional edges. They read the current state and choose the next node, and that target can be an earlier node, which is exactly how a cycle becomes a loop in the graph.
Imagine a board game where each square tells you where to move next. Most squares just say 'go forward one space.' But one special square reads what you are holding and decides: if you still have a quest item, go all the way back to the start square and try again; if your bag is empty, walk to the finish. That special, decision-making square is the conditional edge. Plain squares always send you to the same next square, so a board made only of plain squares marches straight to the end and stops. The decision square is what lets the path bend backward and form a loop. LangGraph works the same way. A normal edge always points to one fixed next node. A conditional edge looks at the shared game state and picks the next node, and it is allowed to pick a node you already visited.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
Name conditional edges, explain the router function that reads state and returns the next node name, walk the reasoner to tool to reasoner cycle, contrast it with static edges, then separate checkpointing and parallel edges as orthogonal features before closing on the recursion limit.
Real products, models, and research that use this idea.
What an interviewer would ask next. Try answering before peeking at the approach.
Red flags and common mistakes that signal junior thinking. Click to expand.
Picking checkpointing. Checkpoints persist and resume state, but they do not route control flow. Only conditional edges read state and choose which node runs next, including an earlier one.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.