Function bfs_traverse
Source pub fn bfs_traverse(graph: &Graph, start_node: NodeId) -> Vec<NodeId>
Expand description
Returns nodes in BFS visit order from the start node.
§Arguments
graph - The graph to traverse
start_node - The starting node
§Returns
Vector of nodes in the order they are visited