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

Method isConsistent

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

Check whether the node is consistent, this means it doesn't contain 3 items or 4 links

(self)

Source from the content-addressed store, hash-verified

161 return self
162
163 def isConsistent(self):
164 """ Check whether the node is consistent, this means it doesn't contain 3 items or 4 links """
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 """

Callers 2

__fixNodeRemoveMethod · 0.80
__fixNodeInsertMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected