Learn R Programming

Rnets (version 1.2.1)

signed_modularity,matrix-method: signed_modularity-matrix

Description

signed_modularity for class(x) = 'matrix'

Usage

# S4 method for matrix
signed_modularity(x, membership, weight = NULL)

Arguments

x

A weighed adjacency matrix

membership

Defines vertex membership to determine if vertices are similar. May be provided as a string that matches an attribute of x or a vector of length equal to the number of vertices in the graph.

weight

Edge weights. Like 'membership', this argument can be defined as a string matching an edge attribute of 'x' or a vector of length equal to the number of edges, but may also be left as NULL which will return an unweighted modularity estimate.