powered by
Extracts the edges data frame from a cograph_network object. For the new format, builds a data frame from the from/to/weight vectors.
get_edges(x)
A data frame with columns: from, to, weight.
A cograph_network object.
as_cograph, n_edges, get_nodes
as_cograph
n_edges
get_nodes
mat <- matrix(c(0, 1, 1, 1, 0, 1, 1, 1, 0), nrow = 3) net <- as_cograph(mat) get_edges(net)
Run the code above in your browser using DataLab