A Directed Acyclic Graph (DAG) is a graphical representation of causal assumptions where nodes represent variables and directed edges represent direct causal relationships, containing no feedback loops. It is the primary mathematical object used in modern causal inference to visually encode a Structural Causal Model and determine which variables must be controlled for to isolate a causal effect.
Glossary
Directed Acyclic Graph

What is a Directed Acyclic Graph?
A foundational structure for encoding causal assumptions and data-generating mechanisms without circular dependencies.
The 'acyclic' constraint means you cannot start at a node and follow a directed path back to itself, preventing circular causality. DAGs enable the application of the Backdoor Criterion and Do-Calculus to algorithmically identify valid adjustment sets, distinguishing true causation from spurious correlation in observational supply chain data.
Key Properties of a DAG
A Directed Acyclic Graph (DAG) is a finite graph with directed edges and no directed cycles. It forms the mathematical backbone for representing causal assumptions, data pipelines, and version histories.
Directed Edges
Every connection in a DAG is a directed edge (an arrow) pointing from one node to another. This directionality explicitly encodes the flow of causation, dependency, or data. In a causal DAG, an arrow from X to Y asserts that X is a direct cause of Y relative to the other variables in the graph. This is fundamentally different from undirected graphs, which only represent symmetric associations.
Acyclicity
The 'A' in DAG stands for acyclic, meaning it is impossible to start at a node and follow a sequence of directed edges to return to the same node. This property prevents circular reasoning and feedback loops. In causal inference, a cycle would imply that an event causes itself, which is a logical paradox. In computation, acyclicity ensures that topological ordering is possible, guaranteeing that tasks like data transformation or causal effect estimation can be completed in a finite number of steps.
Nodes as Variables
Each node in a causal DAG represents a variable in the system being modeled. These can be observed quantities like 'Supplier Lead Time' or 'Order Volume,' or unobserved latent variables like 'Market Sentiment.' The graph's structure makes explicit which variables are parents (direct causes), children (direct effects), and ancestors or descendants of other variables, forming the basis for applying criteria like the Backdoor Criterion to identify confounding.
Topological Ordering
Every DAG has at least one topological ordering, which is a linear sequence of its nodes such that for every directed edge from node A to node B, A comes before B in the sequence. This property is critical for algorithms that process the graph sequentially. In a supply chain causal model, a topological sort ensures that root causes are analyzed before their downstream effects, enabling efficient propagation of interventions through the system.
d-Separation
d-separation (directional separation) is the graphical criterion for reading conditional independencies from a DAG. A path between two nodes is blocked if it contains a chain or fork where the middle node is conditioned on, or a collider where neither the collider nor its descendants are conditioned on. If all paths between two sets of nodes are blocked, they are d-separated and statistically independent. This is the core mechanism for testing whether a causal model is consistent with observed data.
No Feedback Loops
The absence of cycles means a DAG cannot represent feedback loops directly. In a supply chain, a true feedback loop—like a stockout causing a demand surge that worsens the stockout—must be modeled by unrolling the cycle over time. This is achieved by creating separate nodes for each time step (e.g., Inventory_t and Inventory_{t+1}), transforming a cyclic process into an acyclic temporal representation that preserves the DAG's mathematical tractability.
Frequently Asked Questions
Clear, technically precise answers to the most common questions about Directed Acyclic Graphs and their role in causal inference for supply chain disruption analysis.
A Directed Acyclic Graph (DAG) is a formal graphical representation of causal assumptions where nodes represent variables and directed edges (arrows) represent direct causal relationships, constrained by the strict rule that no path can start and end at the same node—meaning feedback loops are forbidden. In causal inference, a DAG encodes a qualitative causal model of the data-generating process. Each arrow X → Y asserts that X is a direct cause of Y relative to the other variables in the graph. The acyclic property ensures that a variable cannot be a cause of itself, either directly or through a chain of intermediaries, which enforces temporal precedence: causes must precede effects. This structure allows analysts to apply graphical criteria like the backdoor criterion and front-door criterion to determine which variables must be controlled for to estimate an unbiased causal effect from observational data.
DAG vs. Other Graphical Models
A comparison of Directed Acyclic Graphs with other graphical modeling frameworks used in causal inference and probabilistic reasoning.
| Feature | Directed Acyclic Graph | Bayesian Network | Markov Random Field | Structural Causal Model |
|---|---|---|---|---|
Edge Directionality | Directed | Directed | Undirected | Directed |
Cycles Permitted | ||||
Encodes Causal Assumptions | ||||
Supports Do-Calculus | ||||
Encodes Conditional Independencies | ||||
Includes Structural Equations | ||||
Distinguishes P(y|do(x)) from P(y|x) | ||||
Typical Use Case | Causal discovery and effect identification | Probabilistic inference with causal interpretation | Spatial statistics and image processing | Formal data-generating mechanism specification |
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
Master the foundational concepts that define how causal relationships are structured and queried within a Directed Acyclic Graph.
Structural Causal Model
The formal mathematical framework that pairs a Directed Acyclic Graph with a set of structural equations. While the DAG encodes qualitative causal assumptions, the SCM defines the precise functional relationships between nodes. Each variable is generated by a function of its direct causes and an exogenous noise term, representing the data-generating mechanism. This allows for rigorous counterfactual reasoning by mutilating specific equations.
Collider Bias
A distortion introduced by conditioning on a collider variable—a node in a DAG that is a common effect of two other variables. While conditioning on a confounder opens a path, conditioning on a collider artificially creates a spurious association between its parents. This is a critical pitfall in causal analysis, often occurring when controlling for mediators or selecting samples based on outcomes.
Causal Discovery Algorithm
A computational method that infers the DAG structure directly from observational data without human specification. Algorithms like the PC algorithm or Greedy Equivalence Search test conditional independencies to prune edges and orient causal directions. These methods output a Markov equivalence class—a set of DAGs that are statistically indistinguishable—rather than a single definitive graph.
Mediation Analysis
A method for decomposing the total causal effect into a direct effect and an indirect effect operating through an intermediate mediator. In a DAG, the mediator sits on the causal path between treatment and outcome. This analysis quantifies how much of the effect is transmitted through a specific mechanism, essential for understanding why an intervention works.

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us