Find the shortest route through a network by a stubbornly simple idea: for every edge, ask “is it cheaper to reach the far end through this edge?” and if so, lower the cost. Do that to every edge, over and over, and the distances settle to the true shortest paths — even with negative edges, where the famous Dijkstra fails. Two names on it; four people found it. It runs in real I-13 on the new array.
Keep a distance to each node, all infinite but the start. For each edge (u→v, weight w): if dist[u] + w < dist[v], improve dist[v]. Sweep all edges V−1 times and every distance is correct. Watch the numbers fall. live demo
“Bellman–Ford” sounds like two collaborators; they never worked together, and two more people got there first-ish. cited
Some call it Bellman–Ford–Moore; the honest name has at least four. shared
Relaxation is one comparison and one indexed write — the array carries the distances, threaded through the sweeps. It runs: