Overview
A Directed Acyclic Graph, or DAG, has directed edges but no path that starts at a node and returns to it. DAGs model prerequisite and dependency structure.
Represents directed dependencies with no cycle following edge directions.
Compact metadata for implementation and discovery.
A Directed Acyclic Graph, or DAG, has directed edges but no path that starts at a node and returns to it. DAGs model prerequisite and dependency structure.
Quick facts
Runtime and memory behavior at a glance.
Best
O(V + E)
Average
O(V + E)
Worst
O(V + E)
Space
O(V + E)
Show the structure layout and how operations move through or update it.
A DAG is a graph structure, not one specific traversal algorithm.
What each reference supports for this entry.
Reference for Directed Acyclic Graph DAG structure, topological ordering, and graph algorithm use.
Good next jumps from the relationship graph, ranked for useful discovery.
Graph Traversal · Foundation
Topological sorting is defined over directed acyclic graphs.
Compare with thisGraph Traversal · Core
DAG dynamic programming relies on acyclic dependency order.
Compare with thisDAG dynamic programming relies on acyclic dependency order.
Topological sorting is defined over directed acyclic graphs.