Home | Trees | Indices | Help |
|
---|
|
object --+ | list --+ | Tree --+ | AbstractParentedTree
An abstract base class for Trees that automatically maintain pointers to their parents. These parent pointers are updated whenever any change is made to a tree's structure. Two subclasses are currently defined:
The AbstractParentedTree
class redefines all operations
that modify a tree's structure to call two methods, which are used by
subclasses to update parent information:
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
item |
|
||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from Inherited from |
|
|||
Inherited from Inherited from |
|
|||
|
|||
Inherited from |
|
Construct a new tree. This constructor can be called in one of two ways:
|
Update
|
Update
|
|
|
append object to end
|
extend list by appending elements from the iterable
|
insert object before index
|
remove and return item at index (default last)
|
remove first occurrence of value
|
x[i:j] Use of negative indices is not supported.
|
del x[i:j] Use of negative indices is not supported.
|
x[i:j]=y Use of negative indices is not supported.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0beta1 on Wed Aug 27 15:08:58 2008 | http://epydoc.sourceforge.net |