mincostmaxflow

package
v0.0.0-...-c69edc0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Edge

type Edge struct {
	Src  int
	Dst  int
	Cap  int64
	Flow int64
	Cost int64
}

type MinCostMaxFlow

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

func NewMinCostMaxFlow

func NewMinCostMaxFlow(n int) *MinCostMaxFlow

func (*MinCostMaxFlow) AddEdge

func (f *MinCostMaxFlow) AddEdge(src int, dst int, cost, cap int64)

func (*MinCostMaxFlow) Edges

func (f *MinCostMaxFlow) Edges() []*Edge

func (*MinCostMaxFlow) Run

func (f *MinCostMaxFlow) Run(src int, snk int, req int64) (cost int64, flowed int64)

Jump to

Keyboard shortcuts

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