Skip to contents

This function finds Function to find global modularity (Q) of a upper triangular adjacency matrix.

Usage

# S3 method for Modularity
compute(adj, mod, method = "Newman1")

Arguments

adj

Required. An n x n upper triangular adjacency in the matrix class format.

mod

Required. An n x 3 dimensional data frame with column names as Gene.ID, moduleNumber, and moduleLabel.

method

Optional. If 'Newman1' is specified modularity is instituded in as-per the Clauset, Newman model in the function igraph::graph.modularity() (Default = 'Newman1')

Value

Q = modularity index.