Documentation ¶
Overview ¶
Package prim implements Prim's Minimum Spanning Tree algorithm.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type VertexSlice ¶
Min-Heap's first element is the minimum
func (VertexSlice) Contains ¶
func (vs VertexSlice) Contains(vtx *gsd.Vertex) bool
Contains returns true if vtx exists in the VertexSlice.
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.