networkx.linalg.spectrum.modularity_spectrum¶
-
modularity_spectrum
(G)[source]¶ Return eigenvalues of the modularity matrix of G.
Parameters: G (Graph) – A NetworkX Graph or DiGraph Returns: evals – Eigenvalues Return type: NumPy array See also
modularity_matrix()
References
[1] M. E. J. Newman, “Modularity and community structure in networks”, Proc. Natl. Acad. Sci. USA, vol. 103, pp. 8577-8582, 2006.