DFS and Floyd updated