Directed Acyclic Graph definition
A directed acyclic graph is a directed graph with no directed cycle.
Directed Acyclic Graph in a picture
How it works
Each edge has an orientation. Following arrows can never return to the starting vertex along a directed cycle. A directed acyclic graph, or DAG, can model dependencies because its vertices have at least one topological order.
Worked examples
Do edges A → B and B → A form a DAG?
No. They form a directed two-edge cycle.
Does A → B → C with A → C form a DAG?
Yes. All arrows go forward in the order A, B, C.
Can the underlying undirected graph have a cycle?
Yes. In the previous example the undirected edges make a triangle.
Common mistake
Follow arrow direction when looking for cycles. A loop in the undirected drawing may fail to be a directed cycle.
Quick check
What is its common abbreviation?
Show answer
DAG.
What vertex ordering exists for every DAG?
Show answer
A topological order.
Sources
Flashcard
Directed Acyclic Graph
Reveal the definition
A directed acyclic graph is a directed graph with no directed cycle.
Effortless Math. “Directed Acyclic Graph.” Math Dictionary.



