Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add core number to the C API #2338

Merged
merged 19 commits into from
Jul 18, 2022

Conversation

betochimas
Copy link
Contributor

@betochimas betochimas commented Jun 3, 2022

This addresses parts of #2169, notably the libcugraph_c API for core number, implemented in src/c_api/core_number.cpp, with relevant header updates. Testing had been started for the sg variant in tests/c_api/core_number_test.c, though results are currently not matching up with what's expected. Testing for the mg variant in tests/c_api/mg_core_number_test.c has not been started.

Also, the pylibcugraph wrapper for core number is included (not tested yet), so this PR can include both APIs or be split into 2 separate PRs, one for each level.

@betochimas betochimas added 2 - In Progress improvement Improvement / enhancement to an existing function non-breaking Non-breaking change labels Jun 3, 2022
@rlratzel rlratzel added this to the 22.08 milestone Jun 8, 2022
@ChuckHastings ChuckHastings marked this pull request as ready for review July 11, 2022 22:29
@ChuckHastings ChuckHastings requested review from a team as code owners July 11, 2022 22:29
@codecov-commenter
Copy link

codecov-commenter commented Jul 12, 2022

Codecov Report

Merging #2338 (e238939) into branch-22.08 (5dd0267) will increase coverage by 0.03%.
The diff coverage is 100.00%.

@@               Coverage Diff                @@
##           branch-22.08    #2338      +/-   ##
================================================
+ Coverage         60.11%   60.15%   +0.03%     
================================================
  Files               102      102              
  Lines              5155     5157       +2     
================================================
+ Hits               3099     3102       +3     
+ Misses             2056     2055       -1     
Impacted Files Coverage Δ
...pylibcugraph/pylibcugraph/experimental/__init__.py 100.00% <100.00%> (ø)
...ython/cugraph/cugraph/community/ktruss_subgraph.py 88.23% <0.00%> (+2.94%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5dd0267...e238939. Read the comment docs.

* @param [in] handle Handle for accessing resources
* @param [in] graph Pointer to graph
* @param [in] do_expensive_check A flag to run expensive checks for input arguments (if set to
* `true`).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you forgot the docstring for degree_type?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

Copy link
Contributor

@jnke2016 jnke2016 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Reviewed and tested on the Python API

@ChuckHastings
Copy link
Collaborator

@gpucibot merge

@rapids-bot rapids-bot bot merged commit 23f9444 into rapidsai:branch-22.08 Jul 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Improvement / enhancement to an existing function non-breaking Non-breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants