Update graphDFS