Floyd Warshall is nice