BFS - Breadth-First Search - easy
So what are graphs exactly ?
lets see what Wikipedia has to say about graphs:
a graph is a structure amounting to a set of objects in which some pairs of the objects are in some sense "related". The objects correspond to mathematical abstractions ca...
hashnode.com
Rattanak Chea
SDE
In the code, is it assumed that there is always a path to person_to_find? The while loop could potentially run infinitely if not found?