Expand a tbl_kgx graph to include all descendants of nodes defined transitively by "biolink:subclass_of" relationships. This is a simple wrapper around expand(predicates = "biolink:subclass_of", direction = "in", transitive = TRUE)
# S3 method for class 'tbl_kgx'
descendants(g, ...)
A tbl_kgx()
graph to expand.
Other parameters (unused).
A tbl_kgx graph.
engine <- file_engine(system.file("extdata", "eds_marfan_kg.tar.gz", package = "monarchr"))
g <- engine |>
fetch_nodes(query_ids = "MONDO:0020066") |>
descendants()