the final commit to the Graph and DFS of Graph