Bellman-Ford Algorithm

Single-source shortest paths with negative edge weights

Click "Next Step" to begin the Bellman-Ford algorithm
Unvisited
Relaxing
Updated
Finalized
Negative Edge

Iteration

Edge Being Relaxed

Distances