networkqit.algorithms.community.comm_assortativity¶
-
comm_assortativity
(A, memb)[source]¶ This function computes the modular group assortativity and the newman modularity as from Eq.18-19 of the Peixoto paper “Nonparametric weighted stochastic block models” https://arxiv.org/pdf/1708.01432.pdf
- Args:
A (np.array): the (weighted) adjacency matrix memb (list): the node block membership
- Output:
qr: the group modular assortativity Q: the Newman modularity
- peixoto2017-weighted
Tiago Peixoto, “Non parametric weighted stochastic block model”, https://arxiv.org/pdf/1708.01432.pdf :url:`https://arxiv.org/pdf/1708.01432.pdf`.