traverse_predecessors#

openomics.database.ontology.traverse_predecessors(network, seed_node, type=['is_a', 'part_of'])[source][source]#

Returns all successor terms from seed_node by traversing the ontology network with edges == type. :param seed_node: seed node of the traversal :param type: the ontology type to include

Returns

generator of list of lists for each dfs branches.