Learn R Programming

Rnets (version 1.2.1)

modularity.rnetBasic: modularity.RnetBasic() - See igraph documentation for full documentation.

Description

modularity.RnetBasic() - See igraph documentation for full documentation.

Usage

# S3 method for rnetBasic
modularity(x, membership, weights = NULL, ...)

Arguments

x

an

membership

Numeric vector, for each vertex it gives its community. The communities are numbered from one.

weights

If not NULL then a numeric vector giving edge weights.

...

Additional arguments, none currently

Value

A numeric scalar, the modularity score of the given configuration.