Spectral graph database