Alternative get_neighbors