Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DisjointSets ¶
type DisjointSets[T comparable] interface { MakeSet(e T) FindSet(e T) (T, error) Union(a, b T) error AreInSameSet(a, b T) (bool, error) SetsCount() int64 GetAllSets() []set.Set[T] Clear() }
func NewDisjointSets ¶
func NewDisjointSets[T comparable](elements ...T) DisjointSets[T]
Click to show internal directories.
Click to hide internal directories.