pub fn bfs<G, N>(
edges: VecCollection<G, (N, N)>,
roots: VecCollection<G, N>,
) -> VecCollection<G, (N, u32)>Expand description
Returns pairs (node, dist) indicating distance of each node from a root.
pub fn bfs<G, N>(
edges: VecCollection<G, (N, N)>,
roots: VecCollection<G, N>,
) -> VecCollection<G, (N, u32)>Returns pairs (node, dist) indicating distance of each node from a root.