CWTSLeiden / networkanalysis

Java package that provides data structures and algorithms for network analysis.
MIT License
144 stars 33 forks source link

Bugfix aggregation #5

Closed vtraag closed 4 years ago

vtraag commented 5 years ago

Corrected the aggregation in the Leiden algorithm. In rare edge cases it was possible that the aggregation and refinement lead to incongruent result, leading to an infinite recursive call. The new implementation is also more clear than the previous implementation, I believe.

vtraag commented 5 years ago

I just realised that the number of clusters still needs to be set for clusteringReducedNetwork.