Skip to main content

ccs_of

Function ccs_of 

Source
pub fn ccs_of(graph: &Graph) -> NodePartition
Expand description

Returns the connected components of graph read as undirected. Equivalent to wccs_of(graph).

The two names let a call say which reading of the graph it means.

Time: O((node_count + edge_count) x alpha(node_count)), as for wccs_of. Memory: up to 12 x node_count bytes for the result; while it runs, 9 x node_count bytes more.