Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
429 views
in Technique[技术] by (71.8m points)

graph - 如果添加新顶点,如何重新计算加权无向图的所有对最短路径?(How to recompute all pair shortest path of a weighted undirected graph if a new vertex is added?)

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...