(a_and_n)
| 257 | |
| 258 | |
| 259 | def floy(a_and_n): |
| 260 | (a, n) = a_and_n |
| 261 | dist = list(a) |
| 262 | path = [[0] * n for i in range(n)] |
| 263 | for k in range(n): |
| 264 | for i in range(n): |
| 265 | for j in range(n): |
| 266 | if dist[i][j] > dist[i][k] + dist[k][j]: |
| 267 | dist[i][j] = dist[i][k] + dist[k][j] |
| 268 | path[i][k] = k |
| 269 | print(dist) |
| 270 | |
| 271 | |
| 272 | """ |
nothing calls this directly
no outgoing calls
no test coverage detected