Lemma. DAG \to indegree 0 [00NE]
- September 24, 2026
Any DAG has a vertex with indegree 0.
Proof.
- September 24, 2026
Pick any starting vertex v, and keep following incoming edges backwards until finding a vertex with no incoming edges. This process must stop: if not, by the pigeonhole principle, since there are only finitely many vertices, we must eventually visit a vertex twice, but this would form a directed cycle, and we assumed the graph is a DAG.
Remark [00NF]
- September 24, 2026
Note that this proof implicitly depends on the fact that the graph is finite (we only consider finite graphs in this class). Does the lemma still hold for infinite DAGs?