Floyd-Warshall all-pair shortest distance.