Base element for in-memory representation of the propagation tree.
Contains a nodeset, with parent-children relationships with other
instances.
|
|
|
printable_subtree(self,
prefix='
' )
recursive method that returns a printable version the subtree from
the current node with a nice presentation |
source code
|
|
|
add_child(self,
child)
add a child to the children list and define the current instance as
its parent |
source code
|
|
|
clear_child(self,
child,
strict=False)
remove a child |
source code
|
|
|
|
|
|
|
children_ns(self)
return the children as a nodeset |
source code
|
|
|
children_len(self)
returns the number of children as the sum of the size of the
children's nodeset |
source code
|
|
|
_is_last(self)
used to display the subtree: we won't prefix the line the same way if
the current instance is the last child of the children list of its
parent. |
source code
|
|
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__subclasshook__
|