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.
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.