package
Version:
v0.0.0-...-ed818d9
Opens a new window with list of versions in this module.
Published: Oct 19, 2024
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
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,
)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.