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

Method findNode

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

Find the node which contains the given value

(self, a)

Source from the content-addressed store, hash-verified

421 return node if node.contains(a) else None
422
423 def findNode(self, a):
424 """ Find the node which contains the given value """
425 self.lastSearchDepth = 0
426 return self.__find(self.root, a)
427
428 def findInorderSucc(self, node, a):
429 """ Returns inorder successor of any node """

Callers 3

containsMethod · 0.95
insertValueMethod · 0.95
removeValueMethod · 0.95

Calls 1

__findMethod · 0.95

Tested by

no test coverage detected