Skip to main content

bfs

Function bfs 

Source
pub fn bfs<V>(
    q: &GraphQuery<V>,
    weight: &TraversalWeight<V>,
    start: &Pattern<V>,
) -> Vec<Pattern<V>>
where V: GraphValue + Clone, V::Id: Clone + Eq + Hash + Ord,
Expand description

Breadth-first traversal from start.

Returns nodes in BFS visit order. The start node is always included.