unionfind

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 29, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UnionFind

type UnionFind struct {
	// contains filtered or unexported fields
}

func New

func New(numV int) *UnionFind

func (*UnionFind) Find

func (uf *UnionFind) Find(v int) int

func (*UnionFind) IsConnected

func (uf *UnionFind) IsConnected(v1, v2 int) bool

func (*UnionFind) NumConnectedComponent

func (uf *UnionFind) NumConnectedComponent() int

func (*UnionFind) Union

func (uf *UnionFind) Union(v1, v2 int)

Jump to

Keyboard shortcuts

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