Struct visioncortex::disjoint_sets::Forests
source · [−]Expand description
Data structure for building disjoint sets
Implementations
Counts the number of unique disjoint sets.
Groups items
by their containing sets. The result is the indices of items in the provided items
that belongs to different disjoint sets. The order of groups is arbitrary.
Items that do not exist in the forest belongs to the same group that does not consist of other contained items.
Find the label of the set item
belongs to.