Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UnionFind ¶
type UnionFind[T comparable] struct { // contains filtered or unexported fields }
UnionFind is a data structure that keeps track of a set of elements partitioned into a number of disjoint (non-overlapping) subsets.
func New ¶
func New[T comparable]() *UnionFind[T]
NewUnionFind creates and returns a new UnionFind instance.
Click to show internal directories.
Click to hide internal directories.