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

Method getLink

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

Get link by its index, return None if there is no link with such an index

(self, linkIdx)

Source from the content-addressed store, hash-verified

173 return self.valcnt == 0
174
175 def getLink(self, linkIdx):
176 """ Get link by its index, return None if there is no link with such an index """
177 if linkIdx < self.refcnt:
178 return self.links[linkIdx]
179
180 def getLinkIdx(self, destNode):
181 """ Get index of the link which points to the given node """

Callers 6

__iter__Method · 0.80
__str__Method · 0.80
__getLeftSiblingMethod · 0.80
__getRightSiblingMethod · 0.80
__fixNodeRemoveMethod · 0.80
__fixNodeInsertMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected