Function breadth_first_search
Source pub fn breadth_first_search<N, E, Ix>(
graph: &Graph<N, E, Ix>,
start: &N,
) -> Result<Vec<N>>
Expand description
Performs breadth-first search (BFS) from a given starting node
§Arguments
graph
- The graph to traverse
start
- The starting node
§Returns
Result<Vec<N>>
- The nodes visited in BFS order