kruskal

package
v0.0.0-...-09d313d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 8, 2016 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Find

func Find(g *graph.Graph) *graph.Graph

Find finds the minimum spanning tree

NOTE to SELF: Kruskal works thanks to the idea that a tree is a connected acyclic graph with exact n-1 edges. Adding one edge to a tree will form a cycle. To avoid cycles, newly added edge must connect to a brand new vertex out of the tree!

NOTE: Find assumes the graph is non-directed even if the representation of the adjacentlist.Graph is directed

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL