Get graph edges table.

edges(graph, ...)

Arguments

graph

Input graph

...

Other options (unused)

Value

A tibble with the edges 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(edges(g))
#> # A tibble: 0 × 25
#> # ℹ 25 variables: from <int>, to <int>, subject <chr>, predicate <chr>,
#> #   object <chr>, agent_type <chr>, knowledge_level <chr>,
#> #   knowledge_source <chr>, aggregator_knowledge_source <chr>,
#> #   primary_knowledge_source <chr>, provided_by <chr>, id <chr>,
#> #   category <chr>, original_object <chr>, original_subject <chr>,
#> #   frequency_qualifier <chr>, has_evidence <chr>, has_total <dbl>,
#> #   has_quotient <dbl>, has_count <dbl>, has_percentage <dbl>, …