Extract nodes from a dataframe of two columns of nodes
Examples
graph <- g$edges
#> Warning: Unknown or uninitialised column: `edges`.
graph
#> NULL
extract_nodes(g$edges)
#> Warning: Unknown or uninitialised column: `edges`.
#> # A tibble: 2 × 1
#> id
#> <int>
#> 1 1
#> 2 0