test_class.file: phenol-core/src/test/java/org/monarchinitiative/phenol/ontology/algo/OntologyTermsTest.java
test_class.identifier: OntologyTermsTest
test_class.superclass: extends VegetableOntologyTestBase
test_case.body: @Test
    void testParentsOf() {
      assertEquals(ImmutableSet.of(
        TermId.of("VO:0000004"),
        TermId.of("VO:0000007"),
        TermId.of("VO:0000001"),
        TermId.of("VO:0000002")),
        OntologyTerms.parentsOf(idBlueCarrot, ontology));
    }
test_case.class_method_signature: OntologyTermsTest.testParentsOf()
test_case.full_signature: @Test void testParentsOf()
test_case.identifier: testParentsOf
test_case.invocations: assertEquals of of of of of parentsOf
test_case.modifiers: @Test
test_case.parameters: ()
test_case.return: void
test_case.signature: void testParentsOf()
focal_class.file: phenol-core/src/main/java/org/monarchinitiative/phenol/ontology/algo/OntologyTerms.java
focal_class.identifier: OntologyTerms
focal_class.class_method_signature: OntologyTerms.visitChildrenOf(
      TermId termId, O ontology, TermVisitor<O> termVisitor)
focal_class.full_signature: public static void visitChildrenOf(
      TermId termId, O ontology, TermVisitor<O> termVisitor)
focal_class.identifier: visitChildrenOf
focal_class.modifiers: public static
focal_class.parameters: (
      TermId termId, O ontology, TermVisitor<O> termVisitor)
focal_class.return: void
focal_class.signature: void visitChildrenOf(
      TermId termId, O ontology, TermVisitor<O> termVisitor)
focal_class.class_method_signature: OntologyTerms.childrenOf(TermId termId, O ontology)
focal_class.full_signature: public static Set<TermId> childrenOf(TermId termId, O ontology)
focal_class.identifier: childrenOf
focal_class.modifiers: public static
focal_class.parameters: (TermId termId, O ontology)
focal_class.return: Set<TermId>
focal_class.signature: Set<TermId> childrenOf(TermId termId, O ontology)
focal_class.class_method_signature: OntologyTerms.visitParentsOf(
      TermId termId, O ontology, TermVisitor<O> termVisitor)
focal_class.full_signature: public static void visitParentsOf(
      TermId termId, O ontology, TermVisitor<O> termVisitor)
focal_class.identifier: visitParentsOf
focal_class.modifiers: public static
focal_class.parameters: (
      TermId termId, O ontology, TermVisitor<O> termVisitor)
focal_class.return: void
focal_class.signature: void visitParentsOf(
      TermId termId, O ontology, TermVisitor<O> termVisitor)
focal_class.class_method_signature: OntologyTerms.parentsOf(TermId termId, O ontology)
focal_class.full_signature: public static Set<TermId> parentsOf(TermId termId, O ontology)
focal_class.identifier: parentsOf
focal_class.modifiers: public static
focal_class.parameters: (TermId termId, O ontology)
focal_class.return: Set<TermId>
focal_class.signature: Set<TermId> parentsOf(TermId termId, O ontology)
focal_method.body: public static <O extends Ontology> Set<TermId> parentsOf(TermId termId, O ontology) {
      Set<TermId> result = new HashSet<>();
  
      visitParentsOf(
          termId,
          ontology,
          new TermVisitor<O>() {
            @Override
            public boolean visit(O ontology, TermId termId) {
              result.add(termId);
              return true;
            }
          });
  
      return result;
    }
focal_method.class_method_signature: OntologyTerms.parentsOf(TermId termId, O ontology)
focal_method.full_signature: public static Set<TermId> parentsOf(TermId termId, O ontology)
focal_method.identifier: parentsOf
focal_method.invocations: visitParentsOf add
focal_method.modifiers: public static
focal_method.parameters: (TermId termId, O ontology)
focal_method.return: Set<TermId>
focal_method.signature: Set<TermId> parentsOf(TermId termId, O ontology)