Depth first traversal is visiting edges in correct order, first all
edges to next vertex are visited, after that vertex is visited.
fixed small bug, edges are printed first and need less indent