Skip to main content

kruskal

Function kruskal 

Source
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).