Extracts the edges data frame from a cograph_network object.
Examples
mat <- matrix(c(0, 1, 1, 1, 0, 1, 1, 1, 0), nrow = 3)
net <- as_cograph(mat)
get_edges(net)
#> from to weight
#> 1 1 2 1
#> 2 1 3 1
#> 3 2 3 1
Extracts the edges data frame from a cograph_network object.
mat <- matrix(c(0, 1, 1, 1, 0, 1, 1, 1, 0), nrow = 3)
net <- as_cograph(mat)
get_edges(net)
#> from to weight
#> 1 1 2 1
#> 2 1 3 1
#> 3 2 3 1