4.2: implementing single robot prm's return of neighbors in the graph