Skip to main content

bfs

Function bfs 

Source
pub fn bfs(
    graph: &CodeGraph,
    start_id: u64,
    options: &TraversalOptions,
) -> TraversalResult
Expand description

Perform a breadth-first traversal from the given start node.

Returns all reachable nodes with their distance from the start.