net.junaraki.libtree
Interface RootedTreeNode<T>

Type Parameters:
T - the type of an element maintained by this tree node
All Superinterfaces:
Node<T>, TreeNode<T>
All Known Implementing Classes:
AbstractBinaryTreeNode, AbstractOrderedTreeNode, AbstractRootedTreeNode, BinarySearchTreeNode, OrderedTreeNode, UnorderedTreeNode

public interface RootedTreeNode<T>
extends TreeNode<T>

An interface for the node of a rooted tree.

Author:
Jun Araki

Method Summary
 boolean isRoot()
          Returns true if this node is the root node.
 
Methods inherited from interface net.junaraki.libtree.TreeNode
addChild, getAncestors, getChildren, getDepth, getDescendant, getDescendants, getHeight, getParent, getProperAncestors, getSiblings, hasAncestor, hasChild, hasChild, hasDescendant, hasParent, hasParent, hasProperAncestor, hasSibling, hasSibling, isLeaf, setChildren, setParent, size
 
Methods inherited from interface net.junaraki.libtree.Node
getDegree, getElement, hasElement, hasElement, setElement
 

Method Detail

isRoot

boolean isRoot()
Returns true if this node is the root node.

Returns:
true if this node is the root node