/** * computes and returns whether the passed node is neither the root, nor a * leaf node. * * @return <code>true</code> if <code>v</code> is neither a leaf nor a root */ public boolean isInternal(V v) { return isLeaf(v) == false && isRoot(v) == false; }
/** * @param v the vertex to test * @return <code>true</code> if <code>v</code> is neither a leaf * nor a root */ public boolean isInternal(V v) { return isLeaf(v) == false && isRoot(v) == false; }