public static UnionFind make(StaticDBIDs ids) {
    if(ids instanceof DBIDRange) {
      return new WeightedQuickUnionRangeDBIDs((DBIDRange) ids);
    }
    return new WeightedQuickUnionStaticDBIDs(ids);
  }
public static UnionFind make ( StaticDBIDs ids ) { if ( ids instanceof DBIDRange ) { return new WeightedQuickUnionRangeDBIDs ( ( DBIDRange ) ids ) ; } return new WeightedQuickUnionStaticDBIDs ( ids ) ; }
Make a new instance (automatically choosing the best implementation).

@param ids ID set
@return Union find algorithm