assortativity {EGAD} | R Documentation |
The function calculates the assortativity of a network, that measures the preference of interactions between similar nodes. As in most literature, 'similarity' is here defined in terms of node degrees.
assortativity(network)
network |
matrix indicating network structure (symmetric) |
Numeric value
network <- matrix( sample(c(0,1),36, replace=TRUE), nrow=6,byrow=TRUE) assort_value <- assortativity(network)