(int a, int b, int c, int d, int w)
| 167 | } |
| 168 | |
| 169 | public static void pathToPath(int a, int b, int c, int d, int w) { |
| 170 | int x = ++cntt; |
| 171 | int y = ++cntt; |
| 172 | pathOut(a, b, x); |
| 173 | pathIn(c, d, y); |
| 174 | addEdge2(x, y, w); |
| 175 | } |
| 176 | |
| 177 | public static void dijkstra() { |
| 178 | for (int i = 1; i <= cntt; i++) { |