Description Usage Arguments References Examples
View source: R/lr_modularity.R
Calculates the LinkRank modularity (Kim et al. 2010) of a graph partition
1 | lr_modularity(g, partition, damping = 0.85, pr_algo = "prpack", weight = NULL)
|
g |
a |
partition |
a graph partition; should be an |
damping |
damping factor (1 - teleportation prob.) |
pr_algo |
algorithm to calculate Perron vector; should be one of "prpack", "arpack", and "power"; defaults to "prpack". |
weight |
if |
Kim, Y., S.W. Son, H. Jeong. 2010. "Finding Communities in Directed Networks," Physical Review E, 81.
1 2 3 4 | data(sampson3, package = "btoolbox")
com = igraph::vertex_attr(sampson3, "group")
lr_modularity(sampson3, com)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.