graphs

package
v0.0.0-...-dbc70a4 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Graph

type Graph[T comparable] struct {
	Nodes sets.Set[T]
	Edges map[T]map[T]int
}

func New

func New[T comparable]() Graph[T]

func (*Graph[T]) Connect

func (g *Graph[T]) Connect(a, b T, distance int)

func (*Graph[T]) Maximise

func (g *Graph[T]) Maximise(a, b T) int

func (*Graph[T]) MinCut

func (g *Graph[T]) MinCut() ([]algorithms.Edge[T], [2][]T)

func (*Graph[T]) Minimise

func (g *Graph[T]) Minimise(a, b T) int

Jump to

Keyboard shortcuts

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