T
- the actual implementation type of this TreeNodepublic interface TreeNode<T extends TreeNode<T>> extends GraphNode<T>
GraphNode
that contains a reference to its parent, thereby making the graph a tree
(since each node can now have only one parent node).Modifier and Type | Method and Description |
---|---|
T |
getParent()
Returns the parent node or null if this node is the root.
|
getChildren
T getParent()