From 8a6e223c66dacbd922f631143f1feed9aa7cb530 Mon Sep 17 00:00:00 2001 From: Erik Welch Date: Wed, 20 Nov 2024 15:31:08 -0600 Subject: [PATCH] Change `degree_type` of `core_number` to `"outgoing"` (#28) Authors: - Erik Welch (https://github.com/eriknw) Approvers: - Rick Ratzel (https://github.com/rlratzel) URL: https://github.com/rapidsai/nx-cugraph/pull/28 --- nx_cugraph/algorithms/core.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/nx_cugraph/algorithms/core.py b/nx_cugraph/algorithms/core.py index c56a679ea..1873f7606 100644 --- a/nx_cugraph/algorithms/core.py +++ b/nx_cugraph/algorithms/core.py @@ -43,10 +43,9 @@ def core_number(G): node_ids, core_numbers = plc.core_number( resource_handle=plc.ResourceHandle(), graph=G._get_plc_graph(), - degree_type="bidirectional", + degree_type="outgoing", do_expensive_check=False, ) - core_numbers = core_numbers // 2 # Added this in 24.12 (behavior changed) return G._nodearrays_to_dict(node_ids, core_numbers)