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