This is the documentation for wuf.
A fast weighted implementation to the union-find problem with path compression.
Examples
let n_nodes = 10;
let mut graph = new;
let node_id1 = 0;
let node_id2 = 1;
if !graph.connected
This is the documentation for wuf.
A fast weighted implementation to the union-find problem with path compression.
let n_nodes = 10;
let mut graph = new;
let node_id1 = 0;
let node_id2 = 1;
if !graph.connected