From 10ac8323ba8a563785771a3dcc80a6ae2cfc8151 Mon Sep 17 00:00:00 2001 From: Dominic Date: Sat, 23 Nov 2024 15:28:40 +0800 Subject: [PATCH] Fix more format bugs. --- procedures/algo_cpp/khop_standalone.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/procedures/algo_cpp/khop_standalone.cpp b/procedures/algo_cpp/khop_standalone.cpp index e9c401edbb..e5d45ee2c9 100644 --- a/procedures/algo_cpp/khop_standalone.cpp +++ b/procedures/algo_cpp/khop_standalone.cpp @@ -14,7 +14,8 @@ class MyConfig : public ConfigBase { void AddParameter(fma_common::Configuration& config) { ConfigBase::AddParameter(config); config.Add(root, "root", true).Comment("Identifier of the root node."); - config.Add(value_k, "value_k", true).Comment("Number of search layers(value of k in K-hop algorithm)."); + config.Add(value_k, "value_k", true).Comment( + "Number of search layers(value of k in K-hop algorithm)."); } void Print() { ConfigBase::Print(); @@ -31,7 +32,8 @@ class MyConfig : public ConfigBase { } }; -extern size_t k_hop(OlapBase& graph, size_t root_vid, ParallelVector& result, size_t k); +extern size_t k_hop(OlapBase& graph, size_t root_vid, + ParallelVector& result, size_t k); int main(int argc, char** argv) { double start_time; @@ -53,7 +55,7 @@ int main(int argc, char** argv) { memUsage.reset(); auto prepare_cost = get_time()- start_time; printf("prepare_cost = %.2lf(s)\n", prepare_cost); - + start_time = get_time(); size_t count_result = k_hop(graph, root_vid, result, value_k); memUsage.print();