Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def get_neighbors(self):
- neighbor_obj_list = list()
- for neighbor in self._neighbor_set:
- neighbor_obj_list.append(neighbor)
- return neighbor_obj_list
- if len(self._neighbor_set) == 0:
- return []
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement