spectral clustering code adjust commit