Shortest-path distances are not just answers; they certify themselves. Every edge must satisfy the distance feasibility inequality, and tight edges reconstruct the shortest-path tree.

highlighted = computed this step

Feasibility inequality

Every edge passes the check d(v) minus d(u) is at most the edge weight. Motivation: a shortest-path answer should prove that no single edge can improve the labels.

d(v)d(u)w(u,v)d(v)-d(u)\leq w(u,v)
feasibility sweepedgew|du-dv|statusA-B11tightB-C22tightC-D32slackB-D44tightC-E55tightA-C63slackD-E73slackD-F88tightE-F95slack

Tight edges

There are 5 tight edges, matching the shortest-path tree. Why: equality identifies the predecessor edges that carry the certified paths.

tight edges=5\text{tight edges}=5
tight edge graph123456789Ad=0Bd=1Cd=3Dd=5Ed=8Fd=13

Slack edges

There are 4 slack edges; for C-D the label difference is 2 and its weight is 3. Interpretation: a slack edge is compatible with the labels but is not needed to carry a certified shortest path from A.

CD: 23C-D:\ 2\leq3
feasibility sweepedgew|du-dv|statusA-B11tightB-C22tightC-D32slackB-D44tightC-E55tightA-C63slackD-E73slackD-F88tightE-F95slack

Other slack checks

The other slack checks are 3 at most 6, 3 at most 7, and 5 at most 9. Why: every unused edge is still checked against the final labels, so the certificate covers the whole graph.

AC,DE,EF are feasible slack checksA-C,D-E,E-F\text{ are feasible slack checks}
feasibility sweepedgew|du-dv|statusA-B11tightB-C22tightC-D32slackB-D44tightC-E55tightA-C63slackD-E73slackD-F88tightE-F95slack

Diagram note

Certificate note: the table is the shortest-path dual certificate for this instance, echoing the certificate idea from earlier duality lessons. Pixel positions are rounded for layout; every number shown is exact.

edge feasibility certifies the labels\text{edge feasibility certifies the labels}
feasibility sweepedgew|du-dv|statusA-B11tightB-C22tightC-D32slackB-D44tightC-E55tightA-C63slackD-E73slackD-F88tightE-F95slack