docstr: Adjacency eigenvalues
docstr_tok: ["Adjacency","eigenvalues"]
code: def test_adjacency_spectrum(self):
      "Adjacency eigenvalues"
      evals = np.array([-np.sqrt(2), 0, np.sqrt(2)])
      e = sorted(nx.adjacency_spectrum(self.P))
      np.testing.assert_almost_equal(e, evals)
  
file_path: networkx/networkx/linalg/tests/test_spectrum.py
imports: import pytest
  import networkx
  from networkx.generators.degree_seq import havel_hakimi_graph
label_desc: Use image node_id 4 for calling the TestSpectrum obj's underlying member method code with example usage: obj.test_adjacency_spectrum() without return types