From 65a02257fdca4b64d7d529e4f33f931aaf2906a9 Mon Sep 17 00:00:00 2001 From: jnke2016 Date: Fri, 15 Nov 2024 08:38:59 -0800 Subject: [PATCH] fix style --- cpp/include/cugraph_c/sampling_algorithms.h | 6 ++---- cpp/src/c_api/neighbor_sampling.cpp | 12 ++++-------- 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/cpp/include/cugraph_c/sampling_algorithms.h b/cpp/include/cugraph_c/sampling_algorithms.h index ab901c7e33..ef75e726d8 100644 --- a/cpp/include/cugraph_c/sampling_algorithms.h +++ b/cpp/include/cugraph_c/sampling_algorithms.h @@ -782,8 +782,7 @@ cugraph_type_erased_device_array_view_t* cugraph_sample_result_get_renumber_map_ * @param [in] result The result from a sampling algorithm * @return type erased array pointing to the renumber map */ -cugraph_type_erased_device_array_view_t* -cugraph_sample_result_get_edge_renumber_map( +cugraph_type_erased_device_array_view_t* cugraph_sample_result_get_edge_renumber_map( const cugraph_sample_result_t* result); /** @@ -793,8 +792,7 @@ cugraph_sample_result_get_edge_renumber_map( * @param [in] result The result from a sampling algorithm * @return type erased array pointing to the renumber map */ -cugraph_type_erased_device_array_view_t* -cugraph_sample_result_get_edge_renumber_map_offsets( +cugraph_type_erased_device_array_view_t* cugraph_sample_result_get_edge_renumber_map_offsets( const cugraph_sample_result_t* result); /** diff --git a/cpp/src/c_api/neighbor_sampling.cpp b/cpp/src/c_api/neighbor_sampling.cpp index 341af63892..be3a44d813 100644 --- a/cpp/src/c_api/neighbor_sampling.cpp +++ b/cpp/src/c_api/neighbor_sampling.cpp @@ -67,8 +67,7 @@ struct cugraph_sample_result_t { cugraph_type_erased_device_array_t* renumber_map_{nullptr}; cugraph_type_erased_device_array_t* renumber_map_offsets_{nullptr}; cugraph_type_erased_device_array_t* edge_renumber_map_{nullptr}; - cugraph_type_erased_device_array_t* - edge_renumber_map_offsets_{nullptr}; + cugraph_type_erased_device_array_t* edge_renumber_map_offsets_{nullptr}; }; } // namespace c_api @@ -1593,8 +1592,7 @@ extern "C" cugraph_type_erased_device_array_view_t* cugraph_sample_result_get_re internal_pointer->renumber_map_offsets_->view()); } -extern "C" cugraph_type_erased_device_array_view_t* -cugraph_sample_result_get_edge_renumber_map( +extern "C" cugraph_type_erased_device_array_view_t* cugraph_sample_result_get_edge_renumber_map( const cugraph_sample_result_t* result) { auto internal_pointer = reinterpret_cast(result); @@ -1605,15 +1603,13 @@ cugraph_sample_result_get_edge_renumber_map( } extern "C" cugraph_type_erased_device_array_view_t* -cugraph_sample_result_get_edge_renumber_map_offsets( - const cugraph_sample_result_t* result) +cugraph_sample_result_get_edge_renumber_map_offsets(const cugraph_sample_result_t* result) { auto internal_pointer = reinterpret_cast(result); return internal_pointer->renumber_map_ == nullptr ? NULL : reinterpret_cast( - internal_pointer->edge_renumber_map_offsets_ - ->view()); + internal_pointer->edge_renumber_map_offsets_->view()); } extern "C" cugraph_error_code_t cugraph_test_uniform_neighborhood_sample_result_create(