Content deleted Content added
clarify why reweighting does not change shortest paths |
m Dated {{Citation needed}}. (Build p607) |
||
Line 23:
Notice that the bracketed expression is the weight of p in the original weighting.
Since the reweighting adds the same amount to the weight of every s-t path, a path is a shortest path in the original weighting if and only if it is a shortest path after reweighting. If the graph did not contain a negative cycle, then due to the way the values {{math|''h(v)''}} were computed, all modified edge lengths are non-negative{{
==Analysis==
|