Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/Jack-Lee-Hiter/AlgorithmsByPython
/ isLeaf
Method
isLeaf
AVL.py:25–26 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
23
return
not self.parent
24
25
def
isLeaf(self):
26
return
not (self.rightChild or self.leftChild)
27
28
def
hasAnyChildren(self):
29
return
self.rightChild or self.leftChild
Callers
2
spliceOut
Method · 0.45
remove
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected