Beispiel #1
0
 /**
  * Check whether this node has an ancestral relationship with another node (i.e. either this node
  * is an ancestor of the other node, or vice versa)
  *
  * @param node the Node to check for a relationship
  * @return whether a relationship exists
  */
 public boolean hasAncestralRelationship(Node node) {
   return this.isAncestorOf(node) || node.isAncestorOf(this);
 }