Consider the graph shown below.

graph TB
    A((1))-->B((2))
    A-->C((3))
    C-->E((5))
    C-->F((6))
    D((4))-->B
    D-->G((7))
    B-->H((8))
  1. Write out the nodes that you encounter (in order) as you perform a depth-first search, starting at (1).
  2. Write out the nodes that you encounter (in order) as you perform a breadth-first search, starting at (1).
  3. Write out the transitive closure for the graph.
  4. Write out the topological ordering of the graph.