Skip to main content

find_shortest_path

Function find_shortest_path 

Source
pub fn find_shortest_path(
    conn: &Connection,
    from_id: i64,
    to_id: i64,
    max_depth: u32,
) -> Result<Option<TraversalPath>>
Expand description

Find shortest path between two entities using BFS

Returns the shortest path (if exists) with all intermediate steps.