compute graph laplacian and its eigenvalues