pylibcugraph.core_number#

pylibcugraph.core_number(
ResourceHandle resource_handle,
_GPUGraph graph,
degree_type,
bool_t do_expensive_check,
)[source]#

Computes core number.

Parameters:
resource_handle: ResourceHandle

Handle to the underlying device and host resource needed for referencing data and running algorithms.

graphSGGraph or MGGraph

The input graph, for either single or multi-GPU operations. The input graph must be symmetric (the is_symmetric property must be True).

degree_type: str

This option is currently ignored. This option may eventually determine if the core number computation should be based on input, output, or both directed edges, with valid values being “incoming”, “outgoing”, and “bidirectional” respectively.

do_expensive_check: bool

If True, performs more extensive tests on the inputs to ensure validity, at the expense of increased run time.

Returns:
A tuple of device arrays, where the first item in the tuple is a device
array containing the vertices and the second item in the tuple is a device
array containing the core numbers for the corresponding vertices.

Examples

# FIXME: No example yet