Documentation ¶
Overview ¶
Package provides an implementation of the Kruskal's minimum spanning forest algorithm together with an implementation of disjoint set data structure
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Edge ¶
type Edge struct {
// contains filtered or unexported fields
}
Type for edge data - endpoints u, v and length
func MinimumSpanningForest ¶
Computes the minimum spanning forest in a graph with vertices numbered from 0 to n-1 and a given set of edges. Returns the subset of edges forming the minimum spanning forest.
Click to show internal directories.
Click to hide internal directories.