Bellman–Ford, Dijkstra, min-plus propagation, and max-plus critical paths
A shortest-path label is a promise about the best path found so far. Relaxation tests whether one more edge improves that promise.
Add along a path. Take the minimum across alternatives. Algorithms differ only in how they schedule those comparisons.
—