(int n)
| 30 | int[] size; |
| 31 | |
| 32 | DSU(int n) { |
| 33 | parent = new int[n]; |
| 34 | size = new int[n]; |
| 35 | for(int i=0;i<n;i++){ |
| 36 | parent[i] = i; |
| 37 | } |
| 38 | Arrays.fill(size, 1); |
| 39 | } |
| 40 | |
| 41 | // Find root of component with path compression |
| 42 | int find(int node) { |
nothing calls this directly
no outgoing calls
no test coverage detected