Visiting the nodes of a graph (depth-first search)

123456789