Get graph nodes table.

nodes(graph, ...)

Arguments

graph

A graph object

...

Other options (unused)

Value

A tibble with the nodes of the graph

Examples

# (using the example KGX file packaged with monarchr)
filename <- system.file("extdata", "eds_marfan_kg.tar.gz", package = "monarchr")

g <- file_engine(filename) |>
  fetch_nodes(query_ids = c("MONDO:0007525", "MONDO:0007526"))

print(nodes(g))
#> # A tibble: 2 × 16
#>   id    pcategory name  symbol in_taxon_label description synonym category iri  
#>   <chr> <chr>     <chr> <chr>  <chr>          <chr>       <list>  <list>   <chr>
#> 1 MOND… biolink:… Ehle… NA     NA             Arthrochal… <chr>   <chr>    http…
#> 2 MOND… biolink:… Ehle… NA     NA             A form of … <chr>   <chr>    http…
#> # ℹ 7 more variables: xref <list>, namespace <chr>, provided_by <chr>,
#> #   in_taxon <chr>, full_name <chr>, type <list>, has_gene <chr>