| Trees | Indices | Help |
|
|---|
|
|
object --+
|
BaseTree
Base class for representing trees. Don't instantiate this: use ImmutableTree or MutableTree.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
x.__init__(...) initializes x; see help(type(x)) for signature
|
Returns the index of this node in the tree according to a postorder ordering. This is inefficient, because it has to recompute the postorder every time. It is more efficient on ImmutableTree, because it can precompute the postorder. Note that it is looking for a node by identity, not equality.
|
Searches for the by of the given node (by identity). Returns the parent, or None if the node is not found. |
str(x)
|
repr(x)
|
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Mon Nov 26 16:04:57 2012 | http://epydoc.sourceforge.net |