From e17b587acf79e8e6e38651f7dd685cab9053a770 Mon Sep 17 00:00:00 2001 From: Alexandria Barghi Date: Mon, 25 Sep 2023 13:51:18 -0700 Subject: [PATCH] remove c code --- .../c_api/uniform_neighbor_sample_test.c | 20 ++----------------- 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/cpp/tests/c_api/uniform_neighbor_sample_test.c b/cpp/tests/c_api/uniform_neighbor_sample_test.c index 34c701fbb87..a2c1e230485 100644 --- a/cpp/tests/c_api/uniform_neighbor_sample_test.c +++ b/cpp/tests/c_api/uniform_neighbor_sample_test.c @@ -715,12 +715,6 @@ int test_uniform_neighbor_sample_with_labels(const cugraph_resource_handle_t* ha size_t start_labels[] = { 6, 12 }; int fan_out[] = {-1}; - bool_t with_replacement = TRUE; - bool_t return_hops = TRUE; - cugraph_prior_sources_behavior_t prior_sources_behavior = DEFAULT; - bool_t dedupe_sources = FALSE; - bool_t renumber_results = FALSE; - // Create graph int test_ret_value = 0; cugraph_error_code_t ret_code = CUGRAPH_SUCCESS; @@ -781,17 +775,6 @@ int test_uniform_neighbor_sample_with_labels(const cugraph_resource_handle_t* ha ret_code = cugraph_rng_state_create(handle, 0, &rng_state, &ret_error); TEST_ASSERT(test_ret_value, ret_code == CUGRAPH_SUCCESS, "rng_state create failed."); - cugraph_sampling_options_t *sampling_options; - - ret_code = cugraph_sampling_options_create(&sampling_options, &ret_error); - TEST_ASSERT(test_ret_value, ret_code == CUGRAPH_SUCCESS, "sampling_options create failed."); - - cugraph_sampling_set_with_replacement(sampling_options, with_replacement); - cugraph_sampling_set_return_hops(sampling_options, return_hops); - cugraph_sampling_set_prior_sources_behavior(sampling_options, prior_sources_behavior); - cugraph_sampling_set_dedupe_sources(sampling_options, dedupe_sources); - cugraph_sampling_set_renumber_results(sampling_options, renumber_results); - ret_code = cugraph_uniform_neighbor_sample_with_edge_properties(handle, graph, d_start_view, @@ -800,7 +783,8 @@ int test_uniform_neighbor_sample_with_labels(const cugraph_resource_handle_t* ha NULL, h_fan_out_view, rng_state, - sampling_options, + FALSE, + TRUE, FALSE, &result, &ret_error);