Function differential_dataflow::algorithms::graphs::bfs::bfs_arranged
source ยท pub fn bfs_arranged<G, N, Tr>(
edges: &Arranged<G, Tr>,
roots: &Collection<G, N>,
) -> Collection<G, (N, u32)>where
G: Scope<Timestamp = Tr::Time>,
N: ExchangeData + Hash,
Tr: for<'a> TraceReader<Key<'a> = &'a N, Val<'a> = &'a N, Diff = isize> + Clone + 'static,
Expand description
Returns pairs (node, dist) indicating distance of each node from a root.