edgegraph.traversal.breadthfirst#
Breadth-first search and traversal functions.
The functions here perform searches and traversals of graphs in a breadth-first manner. The implementations are iterative.
See also
edgegraph.traversal.depthfirst: depth-first search and traverse operations
The algorithm used by all the functions herein visits vertices in the following order. Note that the choice of which branch to take at any given node (e.g., visiting v9 before v10) is determined by the structure of the universe.
Functions