Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Dijkstra ¶
func Dijkstra[T comparable](g Graph[T], a, b T) int
Dijkstra is an implementation of Dijkstra's algorithm for finding the shortest path between two nodes in a graph. https://en.wikipedia.org/wiki/Dijkstra%27s_algorithm
Types ¶
type Graph ¶
type Graph[T comparable] struct { Nodes []T Edges []Edge[T] }
Click to show internal directories.
Click to hide internal directories.