code: public boolean isAncestorOf(Concept concept) {
          Concept p = concept.parent;
  
          while (p != null) {
              if (p == this) {
                  return true;
              } else {
                  p = p.parent;
              }
          }
  
          return false;
      }
docs: Returns true if this concept is an ancestor of the given concept.