Note

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

adjacency_spectrum(G, weight='weight')[source]

Returns 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 – Eigenvalues

Return type

NumPy array

Notes

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

adjacency_matrix()