मुख्य कंटेंट तक स्किप करें
Graph & Pathfinding
Edge Relaxation Engine

Bellman-Ford Algorithm Visualizer

Unlike Dijkstra's, Bellman-Ford handles negative-weight edges by relaxing every edge |V|−1 times. Watch distance tables update after each relaxation pass and see negative-cycle detection in action.

Edge Relaxation

Iterates |V|−1 times over all edges.

Negative Cycles

Detects unreachable optimal states.

O(VE) Complexity

Slower than Dijkstra, more general.

Bellman-Ford Algorithm Visualizer

A
0
B
C
D
E
Edges:
AB (w = 4)
AC (w = 2)
BC (w = -1)
BD (w = 2)
CD (w = 3)
DE (w = 2)

Current Pass: 0

Click Start to visualize Bellman-Ford.