Node of a tree.
|
|
__init__(self,
label,
*args)
x.__init__(...) initializes x; see help(type(x)) for signature |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
postorder(self)
Returns a postorder list of all the nodes in this node's subtree,
including itself. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
leftmost_leaf(self)
Returns the leftmost leaf of this subtree. |
source code
|
|
|
|
rightmost_leaf(self)
Returns the rightmost leaf of this subtree. |
source code
|
|
|
Inherited from object:
__delattr__,
__format__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__setattr__,
__sizeof__,
__subclasshook__
|