NetworkX

Previous topic

networkx.linalg.spectrum.laplacian_spectrum

Next topic

networkx.linalg.attrmatrix.attr_matrix

networkx.linalg.spectrum.adjacency_spectrum

networkx.linalg.spectrum.adjacency_spectrum(G, weight='weight')

Return eigenvalues of the adjacency matrix of G.

Parameters :

G : graph

A NetworkX graph

weight : string or None, optional (default=’weight’)

The edge data key used to compute each value in the matrix. If None, then each edge has weight 1.

Returns :

evals : NumPy array

Eigenvalues

See also

adj_matrix

Notes

For MultiGraph/MultiDiGraph, the edges weights are summed. See to_numpy_matrix for other options.