Verified Commit 0103f7d4 authored by Bertrand  NÉRON's avatar Bertrand NÉRON
Browse files

🐛 fix typo in del_neighbor

parent f7536c93
......@@ -60,7 +60,7 @@ class Node:
# So don't forget to remove the reciprocal relation between the 2 nodes
# if node is a neighbor of self => self is a neighbor of node
self.neighbors.remove(node)
self.node.neigbors.remove(self)
node.neigbors.remove(self)
def get_neighbor(self, node_id: int) -> Optional['Node']:
"""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment