Description Usage Arguments Value Examples
Counts the connections to each node within each structure. Note, this is not the same as the degree distribution from the adjacency matrix obtained from the network, which collapses the individual structures into one graph.
1 | get_degree_distribution(network)
|
network |
A network object. |
A vector of length p, containing the degree for each node in the network.
1 2 3 4 5 | set.seed(13245)
nw <- random_network(10)
deg <- get_degree_distribution(nw) # Degree of each node.
table(deg) # Frequency table of degrees.
# Five nodes have degree 2, three nodes have degree 3, etc.
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.