View source: R/assortativity.R
dw_assort | R Documentation |
Compute the assortativity coefficient of a weighted and directed network.
dw_assort(adj, type = c("outin", "inin", "outout", "inout"))
adj |
is an adjacency matrix of a weighted and directed network. |
type |
which type of assortativity coefficient to compute: "outin" (default), "inin", "outout" or "inout"? |
a scalar of assortativity coefficient
When the adjacency matrix is binary (i.e., directed but unweighted
networks), dw_assort
returns the assortativity coefficient proposed
in Foster et al. (2010).
Foster, J.G., Foster, D.V., Grassberger, P. and Paczuski, M. (2010). Edge direction and the structure of networks. Proceedings of the National Academy of Sciences of the United States, 107(24), 10815–10820.
Yuan, Y. Zhang, P. and Yan, J. (2021). Assortativity coefficients for weighted and directed networks. Journal of Complex Networks, 9(2), cnab017.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.