Open pnrobinson opened 6 years ago
As explained elsewhere (offline in email?), this should go as a static method into a utility class.
Otherwise, good.
OK, I will add a class with utility functions and refactor...
I have added a new class called OntologyAlgorithm, together with OntologyAlgorithmTest. These classes implement various static functions for searching for children, parents, descendents, ancestors, as well as the existsPath
. I will delete the first PR and make a new one for the OntologyAlgorithm.
I would like to have a few more functions in ontolib. I will be making PRs. This is a function for whether there exists a path (declared in Ontology and implemented in ImmutableOntology)
The following tests are passed