Core#

Functions

cugraph_error_code_t cugraph_core_number(
const cugraph_resource_handle_t *handle,
cugraph_graph_t *graph,
cugraph_k_core_degree_type_t degree_type,
bool_t do_expensive_check,
cugraph_core_result_t **result,
cugraph_error_t **error
)#

Perform core number.

Parameters:
  • handle[in] Handle for accessing resources

  • graph[in] Pointer to graph

  • degree_type[in] Compute core_number using in, out or both in and out edges

  • do_expensive_check[in] A flag to run expensive checks for input arguments (if set to true).

  • result[out] Opaque pointer to core number results

  • error[out] Pointer to an error object storing details of any error. Will be populated if error code is not CUGRAPH_SUCCESS

Returns:

error code

cugraph_error_code_t cugraph_k_core(
const cugraph_resource_handle_t *handle,
cugraph_graph_t *graph,
size_t k,
cugraph_k_core_degree_type_t degree_type,
const cugraph_core_result_t *core_result,
bool_t do_expensive_check,
cugraph_k_core_result_t **result,
cugraph_error_t **error
)#

Perform k_core using output from core_number.

Parameters:
  • handle[in] Handle for accessing resources

  • graph[in] Pointer to graph

  • k[in] The value of k to use

  • degree_type[in] Compute core_number using in, out or both in and out edges. Ignored if core_result is specified.

  • core_result[in] Result from calling cugraph_core_number, if NULL then call core_number inside this function call.

  • do_expensive_check[in] A flag to run expensive checks for input arguments (if set to true).

  • result[out] Opaque pointer to k_core results

  • error[out] Pointer to an error object storing details of any error. Will be populated if error code is not CUGRAPH_SUCCESS

Returns:

error code

struct cugraph_core_result_t#
#include <core_algorithms.h>

Opaque core number result type.

Public Members

int32_t align_#
struct cugraph_k_core_result_t#
#include <core_algorithms.h>

Opaque k-core result type.

Public Members

int32_t align_#