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)

descendants(g, ...)

Arguments

g

A tbl_kgx() graph to expand.

...

Other parameters (unused).

Value

A tbl_kgx graph.

Examples

engine <- file_engine(system.file("extdata", "eds_marfan_kg.tar.gz", package = "monarchr"))
g <- engine |>
   fetch_nodes(query_ids = "MONDO:0020066") |>
   descendants()