If a directed graph has no cycles, then it has a nice property.1
Directed and acyclic graphs (or directed acyclic graphs, DAGs) have partial ordering property on vertices. We call a vertex $s$ an ancestor of a vertex $u$ if there is a directed path from $s$ to $u$.
We call a vertex $s$ and ancestor of a vertex $t$ if there is a directed path from $s$ to $t$. The relation $R$ defined by $(s, t) \in R$ if $s$ is an ancestor of $t$ is a partial order.
Clearly, every subgraph induced on a directed acyclic graph is a directed acyclic graph.
We can choose a total ordering that is consistent with the partial order of ancestry.
A topological numbering
(or topological sort,
topological ordering) of a
directed graph $(V, E)$ is a numbering $\sigma :
\set{1, \dots , \num{V}} \to V$ satisfying
\[
(v, w) \in E \implies \inv{\sigma }(v) < \inv{\sigma }(w).
\]