Documentation ¶
Overview ¶
Package spd finds the shortest path using Dijkstra algorithm. It does not work with negative edges.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteNonAlnum ¶
DeleteNonAlnum removes all alphanumeric characters.
Types ¶
type VertexSlice ¶
Min-Heap's first element is the minimum
func (VertexSlice) Len ¶
func (vs VertexSlice) Len() int
func (VertexSlice) Less ¶
func (vs VertexSlice) Less(i, j int) bool
func (*VertexSlice) Pop ¶
func (vs *VertexSlice) Pop() interface{}
func (*VertexSlice) Push ¶
func (vs *VertexSlice) Push(x interface{})
func (VertexSlice) Swap ¶
func (vs VertexSlice) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.