Warning

This documents an unmaintained version of NetworkX. Please upgrade to a maintained version and see the current NetworkX documentation.

networkx.linalg.spectrum.modularity_spectrum

modularity_spectrum(G)[source]

Returns 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.