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]) MinCut ¶
func (g *Graph[T]) MinCut() ([]algorithms.Edge[T], [2][]T)
Click to show internal directories.
Click to hide internal directories.