BFS and DFS changed.