Directed Acyclic Graph (DAG)
Definition
A DAG maps directional dependencies without a closed circle – an important basis for plannable data and automation processes.
A directed acyclic graph consists of nodes and directed edges. Acyclic means: If you follow the arrows, you never get back to the starting node via a closed path. Workflow systems use DAGs to derive permitted execution orders from dependencies.
Simply explained
Think of tasks as boxes with arrows. An arrow says what needs to be done first. No arrowway can run in circles.
Why it matters in practice
DAGs make dependencies visible, allow parallel steps and prevent logically impossible cycles. This helps with data pipelines, ETL processes and repeatable automations.
Example from business
The “Import bills” task must run before “check amounts”; “check amounts” and “archive receipts” can then be modeled dependently or in parallel.
Limits and pitfalls
- Do not equate DAG with the entire workflow system. Hidden cycles, missing dependencies, non-idempotent tasks and unclear error handling lead to unstable processes despite correct graphing.
Origin & history
Apache Airflow uses Dag to model tasks, dependencies, and execution rules. The documentation indicates that this workflow concept goes beyond the purely mathematical data structure.
Use in mid-sized companies
- Companies model recurring data imports, reports or approvals as DAGs. In SMEs, a manageable graph with clear responsibilities, repetition rules and monitoring is worthwhile.
Frequently asked questions
What does acyclical mean?
There is no directed cycle. Is every workflow a DAG? No; a DAG is a structure particularly suited for finite dependency sequences. Can a DAG parallelize steps? Yes, if no dependency blocks them.
Sources
- Dags · Apache Airflow, Dags
Source verification: 10.10.2026. Definition and documented classification checked; examples describe possible applications.
Editorially reviewed on: