Skip to content

Commit

Permalink
fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
jnke2016 committed Nov 15, 2024
1 parent c8b5875 commit 65a0225
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
6 changes: 2 additions & 4 deletions cpp/include/cugraph_c/sampling_algorithms.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

/**
Expand All @@ -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);

/**
Expand Down
12 changes: 4 additions & 8 deletions cpp/src/c_api/neighbor_sampling.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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<cugraph::c_api::cugraph_sample_result_t const*>(result);
Expand All @@ -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<cugraph::c_api::cugraph_sample_result_t const*>(result);
return internal_pointer->renumber_map_ == nullptr
? NULL
: reinterpret_cast<cugraph_type_erased_device_array_view_t*>(
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(
Expand Down

0 comments on commit 65a0225

Please sign in to comment.