12
Edge Relaxation
Assume:
dist[]
and
pred[]
as above
(but containing data for shortest paths
discovered so far
)
Relaxation updates data for
w
if we find a shorter path from
s
to
w
.