Mental Model
Find the shortest path between every pair of points by checking if going through a middle point is better.
Analogy: Imagine you want to find the quickest way to travel between every pair of cities by trying all possible stopovers to see if they save time.
[0] -> [1] -> [2] ↑ ↑ ↑ dist dist dist matrix shows shortest distances between nodes