fix a memory issue on graph partitioning
reduce memory usage for spectral clustering