taynaud / python-louvain

Louvain Community Detection
BSD 3-Clause "New" or "Revised" License
964 stars 200 forks source link

Fix #86 #92

Closed ComplexLychee closed 2 years ago

ComplexLychee commented 2 years ago

When computing the change in modularity after alternating the block membership of a node, the resolution parameter was multiplied to the wrong term.

As a result, the current code fails to correctly implement the Louvain algorithm, except for the special case when the resolution parameter is set to one.