Package | Description |
---|---|
net.datastructures |
Modifier and Type | Class and Description |
---|---|
class |
TreeNode<E>
Class implementing a node of a binary tree by storing references to
an element, a parent node, a left node, and a right node.
|
Modifier and Type | Method and Description |
---|---|
TreePosition<E> |
TreeNode.getParent()
Returns the parent of this position
|
TreePosition<E> |
TreePosition.getParent() |
Modifier and Type | Method and Description |
---|---|
void |
TreeNode.setParent(TreePosition<E> v)
Sets the parent of this position
|
void |
TreePosition.setParent(TreePosition<E> v) |
Constructor and Description |
---|
TreeNode(E element,
TreePosition<E> parent,
PositionList<Position<E>> children)
Main constructor
|