#

Note

This documents the development version of NetworkX. Documentation for the current release can be found here.

#

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.