bfs

Function bfs 

Source
pub fn bfs<G, N>(
    edges: &Collection<G, (N, N)>,
    roots: &Collection<G, N>,
) -> Collection<G, (N, u32)>
where G: Scope<Timestamp: Lattice + Ord>, N: ExchangeData + Hash,
Expand description

Returns pairs (node, dist) indicating distance of each node from a root.