2.
Give the transitive closure matrix of the digraph in the previous question.
3.
Give the order in which DFS finishes visiting each vertex in the following
DAG. This is called the postorder.
(Iterate through the neighbors of v in increasing order.)
Use this ordering to topologically sort the following DAG.