mod.matrix()
was renamed to modularity_matrix()
to create a more
consistent API.
mod.matrix(graph, membership, weights = NULL, resolution = 1, directed = TRUE)
Numeric vector, one value for each vertex, the membership vector of the community structure.
If not NULL
then a numeric vector giving edge weights.
The resolution parameter. Must be greater than or equal to 0. Set it to 1 to use the classical definition of modularity.
Whether to use the directed or undirected version of modularity. Ignored for undirected graphs.