What is graph engineering, and is it just loops with a new name?
What is graph engineering, and is it just loops with a new name?
A few weeks after "loop engineering" became the phrase of the summer, a joke started a second one. On July 18, 2026 Peter Steinberger posted on X: "Are we still talking loops or did we shift to graphs yet?" The same day Hamel Husain posted a tongue-in-cheek piece titled "Loop Engineering Is Dead. Enter Graph Engineering". Within weeks there were framework blog posts and explainer videos. By November, people were giving conference talks with "graph engineering" in the title.
So is it a real practice or a rebrand? The honest answer from the best sources is: the name is new, the idea is old, and it answers a real question that loops do not. If the vocabulary is new to you, start with the glossary for this series.
The short definition
The clearest definition I found comes from Zachary Blumenfeld of Neo4j, in his AI Engineer talk "Make Your AI Agents Predictable With Graph Engineering". He calls it the practice of designing agent work as an explicit graph, where nodes do work and edges route state between them. In the same breath he says the name is new but the mechanisms are not: computer science has long had state machines, workflow graphs and knowledge graphs. What changed is how we apply them to agents.
LangChain, whose LangGraph library is the best known graph framework for agents, says the same thing in its July 2026 post "3 Years of Graph Engineering with LangGraph": graph engineering is not a new idea, and you can think of a graph as a state machine.
Three words do all the work:
- Node: a step that does something. LangChain lists four kinds: plain deterministic code, a single model call, a tool call, or a whole agent with its own loop inside.
- Edge: the rule for what runs next. An edge can be fixed (after A, always B) or conditional (after A, go to B if the ticket is a refund, otherwise C).
- State: the shared data that flows along the edges, such as the ticket text, the draft reply and how many attempts have been made.
Animation: a support ticket moving through classify, check policy, draft and lint nodes, taking a conditional edge, looping back once on a failed check, then finishing.
What problem does a graph solve?
A plain agent decides its next step by itself, every step. That is its strength and its weakness. LangChain's post frames graphs as a way to impose constrained paths instead of relying only on the model's judgment.
Blumenfeld shows the weakness directly. In his demo, the same loan-approval question run twice through a free-running agent took two decision chains of different lengths, and he points out that nothing forces the agent to follow an exact path. His team then compiled the procedure into a graph: hard policy rules became scripts, routing was done by code, and the model was only asked to make the calls that needed judgment. He reports the run getting much faster and working with a smaller model, while calling it a demo rather than formal research.
He sums up the benefits in three words, which match what LangChain says:
- Predictability. The agent can only take paths you drew.
- Governance. You can audit which path a run took and spot branches that never run.
- Portability. In his framing, a graph can be stored as an artifact, such as a skill file, and run by different agents.
LangChain's list of good fits is practical: classify a request and then answer or escalate, inspect a repository before changing it, or require approval before any external action. Each one has a shape you know in advance.
Graphs are not straight lines
One thing that confuses people: the word "graph" makes many think of a DAG, a directed acyclic graph, where work only flows forward. LangChain says agent graphs are usually not DAGs, because production agents need cycles. A draft that fails a check has to go back to the drafting step.
That leads to the neatest line in the debate. LangChain quotes David Khourshid saying that a loop is a directed cyclic graph, and adds its own version: loops are simple graphs. An agent loop is a graph with one node (the model) and one edge pointing back at itself.
So graphs and loops are not rivals. A graph can contain loops (a retry cycle), and a node in a graph can be a whole looping agent. LangChain highlights exactly this as what is new in 2026: a node can now be a full agent run, so one graph can mix fixed steps, single model calls and complete agents.
When a graph is the wrong tool
LangChain is candid that graphs are not always the answer. Its example is open-ended deep research. They tried to model it as a graph and moved it to an agent harness with a core loop instead, because you cannot draw the path of a research task in advance. They note GPT Researcher made the same move.
That gives a simple test, which the loop vs graph post in this series turns into code: if you can sketch the steps on a whiteboard before the task starts, a graph will make the agent more predictable. If the next step depends on what the agent just found, let it loop.
The research version: systems, not single agents
Academic work uses the term more broadly. A 2026 survey, "Graph Engineering in the Era of LLM Agents", describes three levels: what one model can do, what one agent with a harness and loops can do, and what a system of many coordinated agents with shared state can do. Graphs, in their framing, are how that third level is organized. They argue that system intelligence is not the same as adding more agents, a theme this blog also covers in why multi-agent teams fail on long tasks.
Blumenfeld also widens the idea beyond runtime orchestration. Besides execution graphs (what runs next), he describes context graphs (a record of what happened on a given run, linked to the data involved) and procedural graphs (a skill written as allowed steps). The last two are his company's focus, so read that part as one vendor's view.
Animation: Blumenfeld's three kinds of graph for agents: execution, context and procedural, each answering a different question.
Is the term worth using?
Not everyone thinks so. A community knowledge base on the topic noted in September 2026 that whether graph engineering is a distinct layer, rather than a new label for workflow design, "remains unproved". Even Steinberger's original post read to many as a joke about how fast the industry renames things.
My view: the label matters less than the question it forces. Loop engineering asks "how many times, and when do we stop?" Graph engineering asks "which steps are allowed, in what order, and who decides?" Real systems need answers to both.
To build the pieces yourself, the Build an AI Agent in Python course covers the agent loop and an orchestrator with workers, which is a small graph.
Sources
- Zachary Blumenfeld (Neo4j), "Make Your AI Agents Predictable With Graph Engineering", AI Engineer, November 2026. Video: https://www.youtube.com/watch?v=g_NgCLTibiM
- Sydney Runkle and Harrison Chase, "3 Years of Graph Engineering with LangGraph", LangChain, July 2026: https://www.langchain.com/blog/3-years-of-graph-engineering-with-langgraph
- "Graph Engineering in the Era of LLM Agents: From Individual Intelligence to System Intelligence", survey, 2026: https://arxiv.org/pdf/2608.21156v2.pdf
- Awesome LLM Knowledge Systems, chapter 14, "Graph Engineering": https://github.com/kennethlaw325/awesome-llm-knowledge-systems/blob/HEAD/chapters/14-graph-engineering.md
- Peter Steinberger on X, July 18, 2026: https://x.com/steipete/status/2078277297791189132
- Hamel Husain on X, July 18, 2026: https://x.com/HamelHusain/status/2078346425621237935
