I have a graph G(V,E).
(我有一个图G(V,E)。)
I computed the shortest paths for all pairs of vertices using Floyed-Warshall algorithm. (我使用Floyed-Warshall算法计算了所有顶点对的最短路径。)
Now, say a new vertex v is added to the graph. (现在,说一个新的顶点v被添加到图中。)
some new edges which connect v to some other pre existing vertices are also newly added. (还新增了一些将v连接到其他现有顶点的新边。)
Now, how to recompute the all pairs shortest paths again? (现在,如何再次重新计算所有对的最短路径?)
ask by Cradle Faith translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…