def test_adjacency_spectrum(self):
        evals=numpy.array([-numpy.sqrt(2), 0, numpy.sqrt(2)])
        e=sorted(nx.adjacency_spectrum(self.P))
        assert_almost_equal(e,evals)
Adjacency eigenvalues
dataset/ETHPy150Open gkno/gkno_launcher/src/networkx/linalg/tests/test_spectrum.py/TestSpectrum.test_adjacency_spectrum