View source: R/class-network.R
| n_edges | R Documentation |
Returns the number of edges in a cograph_network.
n_edges(x)
x |
A cograph_network object. |
Integer: number of edges.
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.