'Adjacency eigenvalues'

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)
