dimod.traversal.bfs_variables

bfs_variables(bqm, source)[source]

Yields variables in breadth-first search order.

Parameters:
Yields:

variable – variables in the bqm, yielded in breadth-first search order starting at source.