cdm/src/main/java/ucar/nc2/Group.java
public boolean isParent(Group other) {
    while ((other != this) && (other.getParentGroup() != null))
      other = other.getParentGroup();
    return (other == this);
  }
public boolean isParent(Group other) {
    while ((other != this) && (other.getParentGroup() != null))
      other = other.getParentGroup();
    return (other == this);
  }
Is this a parent of the other Group?

@param other another Group
@return true is it is equal or a parent