Node represents a node in a binary tree. It is entirely passive,
acting as a container much a like a C struct. Its unusual features
include a distinction between annotation and value, and references not
only to its children but also to its parent.
|
Node
|
parent = None
The parent of the node, or None if the node has no parent
|
|
Node
|
leftchild = None
The left child of the node, or None if the node has no left child
|
|
Node
|
rightchild = None
The right child of the node, or None if the node has no right child
|
|
tree-specific type
|
annotation = None
A piece of data associated with a node, assigned by a tree-specific
function and satisfying a related constraint.
|
|
typically unconstrained
|
value = None
A value assigned by the user of the tree.
|