标签: algorithm data-structures graph-algorithm depth-first-search breadth-first-search
当在无向图中找到两个节点之间的最短路径时,BFS比DFS更好?在什么情况下,我们应该选择DFS?