A non-parametric spectral model for graph classification