Floyd–Warshall · Interactive Visualizer

PathNova

Build a weighted directed graph, then watch the algorithm relax every pair through every intermediate vertex — step by step.

Enter edge weights below. Leave a cell empty (or type inf) for no edge. Diagonal is always 0.

01234
0
1
2
3
4
Step 0 / 125

Graph (live)

Original weighted directed graph

5 nodes · 7 edges
483257901234

Distance Matrix

01234
004798
1∞03510
2∞∞027
3∞∞1205
4∞∞790