(int u, int v, int w, int c)
| 62 | } |
| 63 | |
| 64 | public static void addEdge1(int u, int v, int w, int c) { |
| 65 | next1[++cnt1] = head1[u]; |
| 66 | to1[cnt1] = v; |
| 67 | weight1[cnt1] = w; |
| 68 | color1[cnt1] = c; |
| 69 | head1[u] = cnt1; |
| 70 | } |
| 71 | |
| 72 | public static void addEdge2(int u, int v, int w, int c) { |
| 73 | next2[++cnt2] = head2[u]; |