Update Graphs BFS, DFS