code: def __delete_node_links(self, node):
          
          for link in list(self._links.values()):
              if node in link.nodes:
                  yield from self.delete_link(link.id, force_delete=True)
docs: Delete all link connected to this node.
  
          The operation use a lock to avoid cleaning links from
          multiple nodes at the same time.