dijkstra

package
v0.0.0-...-8761e3b Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dijkstra

func Dijkstra[T any](
	vertices []*T,
	source *T,
	neighborsOf func(node *T) []*T,
	edges func(a, b *T) float64,
	targetFound func(node *T) bool,
) (
	distances map[*T]float64,
	previousChain map[*T]*T,
)

Types

This section is empty.

Jump to

Keyboard shortcuts

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