Retrieve the edges of a graph-like object.
Examples
adj_matrix <- matrix(c(0,1,0,
1,0,1,
0,1,0), nrow=3, byrow=TRUE)
ng <- neighbor_graph(adj_matrix)
edges(ng)
#> [,1] [,2]
#> [1,] "1" "2"
#> [2,] "2" "3"