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

Method isLeafNode

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

Check whether this is a leaf node or not

(self)

Source from the content-addressed store, hash-verified

165 return not (self.valcnt > 2 or self.refcnt > 3)
166
167 def isLeafNode(self):
168 """ Check whether this is a leaf node or not """
169 return self.refcnt == 0
170
171 def isEmptyNode(self):
172 """ Returns true if node doesn't containt any value """

Callers 5

__rearrangeLinksMethod · 0.95
__nextSuccMethod · 0.80
__fixNodeRemoveMethod · 0.80
__fixNodeInsertMethod · 0.80
findInorderSuccMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected