Last chance! 50% off unlimited learning
Sale ends in
Description of the compute multimodal modularity matrix function.
compute_multimodal_mod(mod_matrix, net, communities, alpha)
multimodal modularity matrix
the modularity matrix output from the
compute_modularity_matrix
function
a network object in list form (see the matrix_to_df
function for more details)
the vector of node assignments to communities
a double parameter balancing the use of the guidance matrix in modularity calculation
Calculates the multimodal version of the modularity matrix, which is detailed in the accompanying
manuscript as the following:
compute_modularity_matrix
function and adds the additional component of a guidance matrix. The alpha parameter controls
the extent to which the guidance matrix influences the modularity, where alpha=0 means the
function reverts to the typical modularity calculation and alpha > 0 allows for some influence
of the guidance matrix. The guidance matrix will not penalize the modularity if two nodes are not
connected within it; it will only decrease the modularity if the two nodes have guidance information.
The function takes in a network object, the mod_matrix output from
compute_modularity_matrix
, a vector of communities, and a parameter
alpha and returns the multimodal modularity matrix.
matrix_to_df
, compute_modularity_matrix