public interface RootedTree extends OrientedForest, Rooted
OrientedForest which is restricted to the descendants
of a single root node.
The following methods behave as expected:
The getRoot( node ) method will throw
a NoSuchNodeException if given a node which is not a
descendant of the root node.
The following methods may throw a
NoSuchNodeException if given a node which is not a
descendant of the root node, depending upon whether or not it is
computationally tenable to do so. The behavior of any concrete
implementations of these methods should be explicitly documented.
| Modifier and Type | Method and Description |
|---|---|
boolean |
isTreeNode(Object node)
Returns
true if the specified node is a
descendant of the root node. |
childTraverser, getDepth, getHeight, getLeastCommonAncestor, getParent, getParentEdge, getParentEndpoint, getRoot, isAncestor, isForestEdge, isLeaf, rootNodesboolean isTreeNode(Object node)
true if the specified node is a
descendant of the root node.See the Plexus project home, hosted by SourceForge.
Copyright ? 1994-2006, by Phoenix Software Technologists, Inc. and others. All Rights Reserved. Use is subject to license terms.