Module Kruskal.Make

Functor providing an implementation of Kruskal's minimum-spanning-tree algorithm. Parameter W ensures that label on edges are comparable.

Parameters

module G : G
module W : Sig.ORDERED_TYPE with type t = G.E.label

Signature

val spanningtree : G.t -> G.E.t list