Concept Flow - Bellman Ford Algorithm Negative Weights
Initialize distances
Repeat V-1 times: Relax all edges
Check for negative weight cycles
If found: Report negative cycle
Else: Distances finalized
The algorithm starts by setting distances, then relaxes edges repeatedly, and finally checks for negative cycles.
