| compare_communities | R Documentation |
Compares two partitions of the same nodes with igraph's partition comparison measures.
compare_communities(
comm1,
comm2,
method = c("vi", "nmi", "split.join", "rand", "adjusted.rand")
)
comm1, comm2 |
Partitions to compare. Each is a
|
method |
Comparison measure, one of |
A single numeric value. "vi" and "split.join" are
distances (0 for identical partitions); "nmi", "rand" and
"adjusted.rand" are similarities (1 for identical partitions).
Meila, M. (2007). Comparing clusterings: An information based distance. Journal of Multivariate Analysis, 98(5), 873–895. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1016/j.jmva.2006.11.013")}
Danon, L., Diaz-Guilera, A., Duch, J., & Arenas, A. (2005). Comparing community structure identification. Journal of Statistical Mechanics: Theory and Experiment, 2005(09), P09008. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1088/1742-5468/2005/09/P09008")}
Hubert, L., & Arabie, P. (1985). Comparing partitions. Journal of Classification, 2(1), 193–218. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1007/BF01908075")}
walktrap <- community_walktrap(regulation_net)
fast_greedy <- community_fast_greedy(regulation_net)
compare_communities(walktrap, fast_greedy, method = "nmi")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.