Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
每个图是否都有边的顺序,以便在根据该顺序运行 Bellman-Ford 算法的单次迭代后,每个顶点都标有到源的最短路径?
我很确定答案是肯定的,但是我想不出一种能够找到边缘顺序的算法,谢谢=]
对最短路径树进行拓扑排序。