powered by
Returns the number of edges in a cograph_network.
n_edges(x)
Integer: number of edges.
A cograph_network object.
as_cograph, n_nodes
as_cograph
n_nodes
mat <- matrix(c(0, 1, 1, 1, 0, 1, 1, 1, 0), nrow = 3) net <- as_cograph(mat) n_edges(net) # 3
Run the code above in your browser using DataLab