Fixed a bug in weighted mudularity calculation, sum of the weights was truncated to an integer.