From 71134553ff66399be153155ec16f2e61604c656b Mon Sep 17 00:00:00 2001 From: acezen Date: Thu, 11 Jan 2024 17:04:44 +0800 Subject: [PATCH] Fix format --- analytical_engine/apps/pregel/louvain/auxiliary.h | 2 +- analytical_engine/apps/pregel/louvain/louvain_app_base.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/analytical_engine/apps/pregel/louvain/auxiliary.h b/analytical_engine/apps/pregel/louvain/auxiliary.h index 26bdede35cd3..7e2f0939a860 100644 --- a/analytical_engine/apps/pregel/louvain/auxiliary.h +++ b/analytical_engine/apps/pregel/louvain/auxiliary.h @@ -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; /** diff --git a/analytical_engine/apps/pregel/louvain/louvain_app_base.h b/analytical_engine/apps/pregel/louvain/louvain_app_base.h index 3f97b61c3c92..92e51333c917 100644 --- a/analytical_engine/apps/pregel/louvain/louvain_app_base.h +++ b/analytical_engine/apps/pregel/louvain/louvain_app_base.h @@ -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);