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

Method chooseChild

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

Choose where to go according to the value a

(self, a)

Source from the content-addressed store, hash-verified

202 return self.values[self.values.index(a)]
203
204 def chooseChild(self, a):
205 """ Choose where to go according to the value a """
206 idx = self.__getlink(a)
207 if 0 <= idx < self.refcnt:
208 return self.links[idx]
209
210 def getItem(self, a):
211 if self.contains(a):

Callers 3

__findMethod · 0.80
__fixNodeRemoveMethod · 0.80
findInorderSuccMethod · 0.80

Calls 1

__getlinkMethod · 0.95

Tested by

no test coverage detected