[prev] 12 [next]

Edge Relaxation

Assume: dist[] and pred[] as above
  (but containing data for shortest paths discovered so far)

[Diagram:Pics/wgraphs/relaxation.png]

Relaxation updates data for w if we find a shorter path from s to w.