bfsVertices
Performs a breadth-first traversal of vertices starting from the given set of initial vertices.
Return
an iterator of vertices visited in breadth-first order
Parameters
start
an iterable collection of starting vertices for the traversal
adjacent
a function that provides the adjacent vertices for a given vertex