AlgoMaster Logo

Bellman-Ford Algorithm

graph={"1":[["2",4],["3",3]],"2":[["3",-2],["4",4]],"3":[["4",2]],"4":[]},source=1
0 / 28
Bellman-Ford Algorithm (source: 1)Initializing...43-24212340Distances:10234Algorithm Info:Total iterations needed: V - 1 = 3Time Complexity: O(V * E)Legend:UnprocessedSource/ActiveCheckingRelaxed
algomaster.io
Step:Initialize distances: source "1" = 0, all others = ∞