mod.matrix {igraph} | R Documentation |
Modularity of a community structure of a graph
Description
mod.matrix()
was renamed to modularity_matrix()
to create a more
consistent API.
Usage
mod.matrix(graph, membership, weights = NULL, resolution = 1, directed = TRUE)
Arguments
membership |
Numeric vector, one value for each vertex, the membership vector of the community structure. |
weights |
If not |
resolution |
The resolution parameter. Must be greater than or equal to 0. Set it to 1 to use the classical definition of modularity. |
directed |
Whether to use the directed or undirected version of modularity. Ignored for undirected graphs. |
[Package igraph version 2.0.3 Index]