Skip to content

Commit

Permalink
Fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
acezen committed Jan 11, 2024
1 parent e7cf0a7 commit 7113455
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion analytical_engine/apps/pregel/louvain/auxiliary.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ constexpr int terminate_step = -9;
constexpr int phase_one_minor_step_0 = 0;
constexpr int phase_one_minor_step_1 = 1;
constexpr int phase_one_minor_step_2 = 2;

constexpr double min_quality_improvement = 0.001;

/**
Expand Down
4 changes: 2 additions & 2 deletions analytical_engine/apps/pregel/louvain/louvain_app_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,8 @@ class LouvainAppBase
// after one pass if already decided halt, that means the pass yield no
// changes, so we halt computation.
if (current_super_step <= 14 ||
std::fabs(actual_quality - ctx.prev_quality())
< min_quality_improvement) {
std::fabs(actual_quality - ctx.prev_quality()) <
min_quality_improvement) {
// turn to sync community result
ctx.compute_context().set_superstep(sync_result_step);
syncCommunity(frag, ctx, messages);
Expand Down

0 comments on commit 7113455

Please sign in to comment.