I suspect that there is a bug when the resolution is different than 1.0, but I might have missed something in the implementation.
Shouldn't the function __modularity() use the resolution parameter when computing the modularity?
Especially since it is used to break the loop in __one_level() :
new_mod = __modularity(status)
if new_mod - cur_mod < __MIN:
break
Hi,
I suspect that there is a bug when the resolution is different than 1.0, but I might have missed something in the implementation.
Shouldn't the function
__modularity()
use the resolution parameter when computing the modularity? Especially since it is used to break the loop in__one_level()
: