Each relaxation operation is actually access to the neighbors, and the nth slack operation ensures that all depths are the shortest paths to n. Because the shortest path of the graph does not pass through the longest time. V-1 edge, so you can see that the Bellman-Ford algorithm gets the shortest path
正在翻译中..