[prev] 6 [next]

Exercise 1: Depth-first Traversal

Which vertices will be visited during dfs(g):

[Diagram:Pics/graphs/traversal2.png]

How can we ensure that all vertices are visited?