pub fn kruskal(g: &Graph) -> Result<SpanningForest, ErrorsJSL>Expand description
Kruskal’s algorithm: edges by increasing weight, kept when they join two components
(union-find). O(E log E).
pub fn kruskal(g: &Graph) -> Result<SpanningForest, ErrorsJSL>Kruskal’s algorithm: edges by increasing weight, kept when they join two components
(union-find). O(E log E).