So Basically, I am stuck on a question.
Given an undirected weighted graph,find the minimum weight of the edges of this graph so that the minimum distance between a particular vertex (say $A$) and all the other vertices is same with both the old and the new weight of the edges. For eg: Let the graph have n vertices and m edges with weights [$W_1,W_2,\ldots W_m]$.
The minimum cost to travel from A vertex to any other vertex be $[M_1,M_2,\ldots M_{n-1}]$.
Now, find the new minimum possible edge weights(for the same edges) $ [w_1,w_2,\ldots,w_m]$ keeping the minimum cost same.
I have to output the sum of these minimum edge weights;i.e $(w_1+w_2+w_3+\cdots +w_m)$.
Thank You.