edgegraph.traversal.breadthfirst.bfs does not return the start vertex when it matches the desired criteria. The following unit test covers this case:
def test_bfs_finds_first_vertex(graph):
uni, verts = graph
for vert in verts:
search = breadthfirst.bfs(uni, vert, 'i', vert.i)
assert search is vert, f"BFS did not identify the starting vertex!"
edgegraph.traversal.breadthfirst.bfs
does not return thestart
vertex when it matches the desired criteria. The following unit test covers this case: