docs: public IntList getRoots() {
      IntList roots = new IntArrayList();
      for(int i = 0; i < used; i++) {
        // roots or one element in component
        if(parent[i] == i) {
          roots.add(i);
        }
      }
      return roots;
    }