disjointSets

package
v0.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 2, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

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]

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL