def adjacency_spectrum(G, weight='weight'):
    try:
        import numpy as np
    except ImportError:
        raise ImportError(
          "adjacency_spectrum() requires NumPy: http://scipy.org/ ")
    return np.linalg.eigvals(nx.adjacency_matrix(G,weight=weight))

# fixture for nose tests
Models module can be loaded from an app in an egg
dataset/ETHPy150Open gkno/gkno_launcher/src/networkx/linalg/spectrum.py/adjacency_spectrum--crossover with--dataset/ETHPy150Open django/django/tests/app_loading/tests.py/EggLoadingTest.test_egg1