Floyd’s Algorithm-shortest path
0
X
Inf
Inf
4
X
0
X
Inf
3
Inf
X
0
X
2
Inf
Inf
X
0
1
4
3
2
1
1
4
3
2