-
Notifications
You must be signed in to change notification settings - Fork 311
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
K-core implementation for undirected graphs #1933
Conversation
…t can overflow if k_core_degree_type is INOUT as the maximum possible core number is (num_vertices - 1) * 2
…ers to k_last for the vertices that belong to k_last+1-core as this information is useful in triangle counting so no need to throw away useful information
Codecov Report
@@ Coverage Diff @@
## branch-21.12 #1933 +/- ##
===============================================
Coverage ? 70.35%
===============================================
Files ? 143
Lines ? 8903
Branches ? 0
===============================================
Hits ? 6264
Misses ? 2639
Partials ? 0 Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One observation, willing to merge without the change.
cpp/src/cores/core_number_impl.cuh
Outdated
if (graph_view.is_multigraph()) { | ||
CUGRAPH_FAIL("unimplemented."); // check for multi-edges | ||
} | ||
CUGRAPH_FAIL("unimplemented."); // check for self-loops |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to add the calls just implemented in #1939 ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I should.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
@gpucibot merge |
Close #1909.
This PR aims to implement K-core only for undirected graphs.