Skip to content

Commit

Permalink
Change degree_type of core_number to "outgoing" (#28)
Browse files Browse the repository at this point in the history
Authors:
  - Erik Welch (https://github.com/eriknw)

Approvers:
  - Rick Ratzel (https://github.com/rlratzel)

URL: #28
  • Loading branch information
eriknw authored Nov 20, 2024
1 parent e7ddf25 commit 8a6e223
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions nx_cugraph/algorithms/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down

0 comments on commit 8a6e223

Please sign in to comment.