Expand a tbl_kgx graph to include all ancestors of nodes defined transitively by "biolink:subclass_of" relationships. This is a simple wrapper around expand(predicates = "biolink:subclass_of", direction = "out", transitive = TRUE)
ancestors(g, ...)
A tbl_kgx()
graph to expand.
Other parameters (unused).
A tbl_kgx graph.
data(eds_marfan_kg)
g <- eds_marfan_kg |>
fetch_nodes(query_ids = "MONDO:0020066") |>
ancestors()