| Package | Description |
|---|---|
| graph.tree.binary |
Classes representing a binary-tree and its elements.
|
| Modifier and Type | Method and Description |
|---|---|
BinaryTreeNode<V> |
BinaryTreeNode.getLeft() |
BinaryTreeNode<V> |
BinaryTreeNode.getParent() |
BinaryTreeNode<V> |
BinaryTreeNode.getRight() |
BinaryTreeNode<V> |
BinaryTree.getRoot() |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<BinaryTreeNode<V>> |
BinaryTree.getNodes() |
| Modifier and Type | Method and Description |
|---|---|
void |
BinaryTreeNode.setLeft(BinaryTreeNode<V> left) |
void |
BinaryTreeNode.setParent(BinaryTreeNode<V> parent) |
void |
BinaryTreeNode.setRight(BinaryTreeNode<V> right) |
void |
BinaryTree.setRoot(BinaryTreeNode<V> root) |
| Modifier and Type | Method and Description |
|---|---|
void |
BinaryTree.setNodes(java.util.List<BinaryTreeNode<V>> nodes) |
| Constructor and Description |
|---|
BinaryTreeNode(V vertex,
BinaryTreeNode<V> left,
BinaryTreeNode<V> right)
Construct a binary tree node associated with the given vertex
and sets nodes to its right and left
|
BinaryTreeNode(V vertex,
BinaryTreeNode<V> left,
BinaryTreeNode<V> right)
Construct a binary tree node associated with the given vertex
and sets nodes to its right and left
|
BinaryTreeNode(V vertex,
BinaryTreeNode<V> left,
BinaryTreeNode<V> right,
BinaryTreeNode<V> parent)
Construct a binary tree node associated with the given vertex
and sets nodes to its right and left as well as its parent
|
BinaryTreeNode(V vertex,
BinaryTreeNode<V> left,
BinaryTreeNode<V> right,
BinaryTreeNode<V> parent)
Construct a binary tree node associated with the given vertex
and sets nodes to its right and left as well as its parent
|
BinaryTreeNode(V vertex,
BinaryTreeNode<V> left,
BinaryTreeNode<V> right,
BinaryTreeNode<V> parent)
Construct a binary tree node associated with the given vertex
and sets nodes to its right and left as well as its parent
|