MCPcopy Create free account
hub / github.com/ActiveState/code / removeLink

Method removeLink

recipes/Python/577898_23_Tree/recipe-577898.py:158–161  ·  view source on GitHub ↗

Remove link from self to another node

(self, node)

Source from the content-addressed store, hash-verified

156 return self
157
158 def removeLink(self, node):
159 """ Remove link from self to another node """
160 self.__removeLink(self.getLinkIdx(node))
161 return self
162
163 def isConsistent(self):
164 """ Check whether the node is consistent, this means it doesn't contain 3 items or 4 links """

Callers 2

__fixNodeRemoveMethod · 0.80
__fixNodeInsertMethod · 0.80

Calls 2

__removeLinkMethod · 0.95
getLinkIdxMethod · 0.95

Tested by

no test coverage detected