code: public static UnionFind make(StaticDBIDs ids) {
      if(ids instanceof DBIDRange) {
        return new WeightedQuickUnionRangeDBIDs((DBIDRange) ids);
      }
      return new WeightedQuickUnionStaticDBIDs(ids);
    }
docs: Make a new instance (automatically choosing the best implementation).
  
  @param ids ID set
  @return Union find algorithm