multigraph

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2024 License: BSD-2-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Multigraph

type Multigraph[T any] struct {
	// contains filtered or unexported fields
}

func New

func New[T any](n int) *Multigraph[T]

func (*Multigraph[T]) Add

func (g *Multigraph[T]) Add(v, w int, weight T)

func (*Multigraph[T]) AddBoth

func (g *Multigraph[T]) AddBoth(v, w int, weight T)

func (*Multigraph[T]) EdgesFrom

func (g *Multigraph[T]) EdgesFrom(v int) iter.Seq2[int, T]

func (*Multigraph[T]) Order

func (g *Multigraph[T]) Order() int

func (*Multigraph[T]) Visit

func (g *Multigraph[T]) Visit(v int, do func(w int, c int64) bool) bool

Jump to

Keyboard shortcuts

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