Skip to main content

bfs_with_parents

Function bfs_with_parents 

Source
pub fn bfs_with_parents(
    adj: &CsrMatrix,
    sources: &[NodeId],
) -> Result<(Vec<Distance>, Vec<NodeId>)>
Expand description

Multi-source BFS returning parent pointers for path reconstruction.