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