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

Method __find

recipes/Python/577898_23_Tree/recipe-577898.py:250–258  ·  view source on GitHub ↗
(self, curNode, a)

Source from the content-addressed store, hash-verified

248 return node
249
250 def __find(self, curNode, a):
251 if curNode is not None:
252 if curNode.contains(a):
253 return curNode
254 nextNode = curNode.chooseChild(a)
255 if nextNode is None:
256 return curNode
257 self.lastSearchDepth += 1
258 return self.__find(nextNode, a)
259
260 def __getLeftSibling(self, node):
261 """ Returns left sibling of a node """

Callers 1

findNodeMethod · 0.95

Calls 2

chooseChildMethod · 0.80
containsMethod · 0.45

Tested by

no test coverage detected