/** * Indicates if there is at least one edee leading to or from given vertex * * @return <code>true</code> if this vertex is connected with other vertex,<code>false</code> otherwise */ public boolean isConnected() { return isRoot() || isLeaf(); }
/** * Indicates if there is at least one edee leading to or from given vertex * * @return <code>true</code> if this vertex is connected with other vertex,<code>false</code> otherwise */ public boolean isConnected() { return isRoot() || isLeaf(); }