dutch flag and DFS graph construction (to finish)