pub fn bfs_layers<G, I>(graph: G, sources: I) -> Vec<Vec<G::NodeId>>where G: IntoEdges + Visitable, I: IntoIterator<Item = G::NodeId>, G::NodeId: Copy + Hash + Eq,