class Floyd { private int n; private int M[][]; public Floyd (int towns, int map[][]) { n = towns; M = new int[n][n]; // Form initial map M0 in M for (int i=0; i