- java.lang.Object
-
- org.jgrapht.util.AVLTree.TreeNode<T>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AVLTree.TreeNode<T>
getLeft()
Returns a left child of this nodeAVLTree.TreeNode<T>
getParent()
Returns a parent of this nodeAVLTree.TreeNode<T>
getPredecessor()
Returns a predecessor of this node according to the tree in order traversal, ornull
if this node is a minimum node in the treeAVLTree.TreeNode<T>
getRight()
Returns a right child of this nodeAVLTree.TreeNode<T>
getRoot()
Returns a root of the tree this node is stored inAVLTree.TreeNode<T>
getSubtreeMax()
Returns a maximum node stored in the subtree rooted at this nodeAVLTree.TreeNode<T>
getSubtreeMin()
Returns a minimum node stored in the subtree rooted at this nodeAVLTree.TreeNode<T>
getSuccessor()
Returns a successor of this node according to the tree in order traversal, ornull
if this node is a maximum node in the treeAVLTree.TreeNode<T>
getTreeMax()
Returns a maximum node stored in the treeAVLTree.TreeNode<T>
getTreeMin()
Returns a minimum node stored in the treeT
getValue()
Returns a value stored in this nodeString
toString()
-
-
-
Method Detail
-
getValue
public T getValue()
Returns a value stored in this node- Returns:
- a value stored in this node
-
getRoot
public AVLTree.TreeNode<T> getRoot()
Returns a root of the tree this node is stored in- Returns:
- a root of the tree this node is stored in
-
getSubtreeMin
public AVLTree.TreeNode<T> 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
public AVLTree.TreeNode<T> 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
public AVLTree.TreeNode<T> getTreeMin()
Returns a minimum node stored in the tree- Returns:
- a minimum node stored in the tree
-
getTreeMax
public AVLTree.TreeNode<T> getTreeMax()
Returns a maximum node stored in the tree- Returns:
- a maximum node stored in the tree
-
getParent
public AVLTree.TreeNode<T> getParent()
Returns a parent of this node- Returns:
- a parent of this node
-
getLeft
public AVLTree.TreeNode<T> getLeft()
Returns a left child of this node- Returns:
- a left child of this node
-
getRight
public AVLTree.TreeNode<T> getRight()
Returns a right child of this node- Returns:
- a right child of this node
-
getSuccessor
public AVLTree.TreeNode<T> 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
public AVLTree.TreeNode<T> 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
-
-