Description of the compute modularity matrix function.
compute_modularity_matrix(net)
mod_matrix
a spinglass_net
object (see matrix_to_df
for
more details)
Calculates the modularity matrix, which is the difference between the observed adjacency matrix and the expected adjacency matrix (from a null model). This is only computed for the main component of network information, not accounting for the guidance. For neuroimaging application, this function would be computing the modularity matrix for the functional connectivity aspect of the network object. The function takes in a network object and returns the modularity matrix.
matrix_to_df