[BUG]: spectralModularityMaximizationClustering fails for large graphs or large num_eigen_vects #4392
Closed
2 tasks done
Labels
bug
Something isn't working
Version
24.04
Which installation method(s) does this occur on?
Pip
Describe the bug.
I am using spectralModularityMaximizationClustering on a graph with 2.4M nodes and 110M nonzero entries in its adjacency matrix. In the following code, the intended number of clusters is k=47.
I started with num_eigen_vects=47=k, but encountered the following error. (Is this due to insufficient buffer size configured for the eigenvectors?)
Referring to Issue #710, I set smaller values for num_eigen_vects, and the algorithm only finishes without crashing when nev<=4. Still, with nev=4, the result contains 36 clusters instead of k=47.
In addition, I experimented with a subgraph consisting of the first 100k nodes, and the algorithm can finish with nev=47. For the subgraph with the first 1M nodes, the algorithm can only finish with nev<=16.
p.s. I first tried to instantiate the Graph object with adjlist from the CSR sparse matrix in the following code. However, directly calling spectralModularityMaximizationClustering afterward failed with the error
'NoneType' object has no attribute 'edgelist_df'
.Minimum reproducible example
No response
Relevant log output
No response
Environment details
Other/Misc.
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: