Skip to main content

shortest_path

Function shortest_path 

Source
pub fn shortest_path(
    graph: &CsrGraph,
    from: MemoryId,
    to: MemoryId,
) -> Option<Vec<MemoryId>>
Expand description

Find shortest path using BFS. Returns None if no path exists.