pub fn connected_components<V>(
q: &GraphQuery<V>,
weight: &TraversalWeight<V>,
) -> Vec<Vec<Pattern<V>>>Expand description
Partition the graph into connected components.
Returns a Vec of Vecs; each inner Vec is one component.
Uses BFS internally.