package
Version:
v0.0.0-...-0fc0a22
Opens a new window with list of versions in this module.
Published: May 16, 2021
License: CC-BY-SA-4.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Shortest calculates the "shortest" path between two points.
An implementation of Dijkstra's algorithm.
TODO: make the distance metric configurable.
func NewMap(width, height int) *Map
func (m *Map) Neighbors(idx int) []node
Source Files
¶
Click to show internal directories.
Click to hide internal directories.