Skip to main content

bfs

Function bfs 

Source
pub fn bfs(store: &LpgStore, start: NodeId) -> Vec<NodeId>
Expand description

Performs breadth-first search from a starting node.

Returns the set of visited nodes in BFS order.

§Arguments

  • store - The graph store to traverse
  • start - The starting node ID

§Returns

A vector of node IDs in the order they were discovered.