Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KruskalMST ¶
type KruskalMST struct {
// contains filtered or unexported fields
}
KruskalMST is a data type that computes the minimum spanning tree of an undirected edge weighted graph. The implementation uses Kruskal's algorithm, a minimum priority queue and the union find data type.
func NewKruskalMST ¶
func NewKruskalMST(g *edge_weighted_graph.EdgeWeightedGraph) *KruskalMST
func (*KruskalMST) Edges ¶
func (mst *KruskalMST) Edges() Queue
func (*KruskalMST) Weight ¶
func (mst *KruskalMST) Weight() float64
type Queue ¶
func NewEmptyQueue ¶
func NewEmptyQueue() Queue
Click to show internal directories.
Click to hide internal directories.