modularity.RnetBasic() - See igraph documentation for full documentation.
# S3 method for rnetBasic
modularity(x, membership, weights = NULL, ...)
an
Numeric vector, for each vertex it gives its community. The communities are numbered from one.
If not NULL then a numeric vector giving edge weights.
Additional arguments, none currently
A numeric scalar, the modularity score of the given configuration.