(int c, int x, int y)
| 180 | } |
| 181 | |
| 182 | public static void connect(int c, int x, int y) { |
| 183 | int u = node(c, x); |
| 184 | int v = node(c, y); |
| 185 | nodeDegree[u]++; |
| 186 | nodeDegree[v]++; |
| 187 | link(u, v); |
| 188 | edgeColor.put(edge(x, y), c); |
| 189 | } |
| 190 | |
| 191 | public static void disconnect(int c, int x, int y) { |
| 192 | int u = node(c, x); |