java.lang.Object
org.jgrapht.util.AVLTree.TreeNode<T>
- Type Parameters:
T
- a tree node value type
Container holding the values stored in the tree.
-
Method Summary
Modifier and TypeMethodDescriptiongetLeft()
Returns a left child of this nodeReturns a parent of this nodeReturns a predecessor of this node according to the tree in order traversal, ornull
if this node is a minimum node in the treegetRight()
Returns a right child of this nodegetRoot()
Returns a root of the tree this node is stored inReturns a maximum node stored in the subtree rooted at this nodeReturns a minimum node stored in the subtree rooted at this nodeReturns a successor of this node according to the tree in order traversal, ornull
if this node is a maximum node in the treeReturns a maximum node stored in the treeReturns a minimum node stored in the treegetValue()
Returns a value stored in this nodetoString()
-
Method Details
-
getValue
Returns a value stored in this node- Returns:
- a value stored in this node
-
getRoot
Returns a root of the tree this node is stored in- Returns:
- a root of the tree this node is stored in
-
getSubtreeMin
Returns a minimum node stored in the subtree rooted at this node- Returns:
- a minimum node stored in the subtree rooted at this node
-
getSubtreeMax
Returns a maximum node stored in the subtree rooted at this node- Returns:
- a maximum node stored in the subtree rooted at this node
-
getTreeMin
Returns a minimum node stored in the tree- Returns:
- a minimum node stored in the tree
-
getTreeMax
Returns a maximum node stored in the tree- Returns:
- a maximum node stored in the tree
-
getParent
Returns a parent of this node- Returns:
- a parent of this node
-
getLeft
Returns a left child of this node- Returns:
- a left child of this node
-
getRight
Returns a right child of this node- Returns:
- a right child of this node
-
getSuccessor
Returns a successor of this node according to the tree in order traversal, ornull
if this node is a maximum node in the tree- Returns:
- successor of this node, or null if this node in a maximum node in the tree
-
getPredecessor
Returns a predecessor of this node according to the tree in order traversal, ornull
if this node is a minimum node in the tree- Returns:
- predecessor of this node, or null if this node in a minimum node in the tree
-
toString
-