Skip to content

Commit

Permalink
Fine optimization for the mod-increase variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Cry1is committed Apr 13, 2022
1 parent 2fe83de commit ec1e197
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Graph_helper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ void Graph_helper::louvain_community_helper(Graph& temp) {
old_comm = c->second;
int new_comm = find_community(old_comm, temp);

if (new_comm != -1 && new_comm != old_comm && curr_mod > best_mod + .01) {
if (new_comm != -1 && new_comm != old_comm && curr_mod > best_mod + best_mod/50) {
// set communityMoved to true
communityMoved = true;

Expand Down

0 comments on commit ec1e197

Please sign in to comment.