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

Method getLinkIdx

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

Get index of the link which points to the given node

(self, destNode)

Source from the content-addressed store, hash-verified

178 return self.links[linkIdx]
179
180 def getLinkIdx(self, destNode):
181 """ Get index of the link which points to the given node """
182 return self.links.index(destNode)
183
184 def addLink(self, anotherNode):
185 """ Add link to another node """

Callers 3

removeLinkMethod · 0.95
__getLeftSiblingMethod · 0.80
__getRightSiblingMethod · 0.80

Calls 1

indexMethod · 0.45

Tested by

no test coverage detected