graph.wall

graph.wall.cc

void wall(vvi&d) {
  int n = d.size();
  rep (i, n) d[i][i] = 0;
  rep (k, n) rep (i, n) rep (j, n)
    d[i][j] = min(d[i][j], d[i][k] + d[k][j]);
}