47 origin_ = other.origin_;
55 origin_ = other.origin_;
81 parent_ = parent_->
find();
128 for(
int i = 0; i < (int)sets.size() - 1; i++)
135 return rank_ < other.rank_;
139 return rank_ > other.rank_;
const ufDataType & getData() const
ExtendedUnionFind(const ExtendedUnionFind &other)
void setData(const ufDataType &d)
void setOrigin(const SimplexId &origin)
void setRank(const int &rank)
const SimplexId & getOrigin() const
bool operator>(const ExtendedUnionFind &other) const
bool operator<(const ExtendedUnionFind &other) const
void setParent(ExtendedUnionFind *parent)
static ExtendedUnionFind * makeUnion(std::vector< ExtendedUnionFind * > &sets)
ExtendedUnionFind & operator=(const ExtendedUnionFind &other)
ExtendedUnionFind(const SimplexId &origin)
static ExtendedUnionFind * makeUnion(ExtendedUnionFind *uf0, ExtendedUnionFind *uf1)
ExtendedUnionFind * find()
long int ufDataType
type stored by UnionFind
int SimplexId
Identifier type for simplices of any dimension.