def laplacian_spectrum(G, weight='weight'):
    try:
        import numpy as np
    except ImportError:
        raise ImportError(
          "laplacian_spectrum() requires NumPy: http://scipy.org/ ")
    return np.linalg.eigvals(nx.laplacian_matrix(G,weight=weight))
Directivity
dataset/ETHPy150Open gkno/gkno_launcher/src/networkx/linalg/spectrum.py/laplacian_spectrum--crossover with--dataset/ETHPy150Open python-acoustics/python-acoustics/acoustics/directivity.py/Cardioid._directivity