-
Notifications
You must be signed in to change notification settings - Fork 304
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
Initial implementation of the Leiden C API #3165
Initial implementation of the Leiden C API #3165
Conversation
* fewer larger communities. | ||
* @param [in] do_expensive_check | ||
* A flag to run expensive checks for input arguments (if set to true) | ||
* @param [out] result Output from the Louvain call |
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.
typo. I think you meant Leiden
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.
LGTM (except for few minor cosmetic issues)
vertex_t h_result[] = {0, 1, 0, 1, 1, 1}; | ||
weight_t expected_modularity = 0.218166; | ||
|
||
// Louvain wants store_transposed = FALSE |
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.
Louvain => Leiden
@@ -0,0 +1,139 @@ | |||
/* | |||
* Copyright (c) 2022, NVIDIA CORPORATION. |
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.
2022-2023?
0.1f, 2.1f, 1.1f, 5.1f, 3.1f, 4.1f, 7.2f, 3.2f, 0.1f, 2.1f, 1.1f, 5.1f, 3.1f, 4.1f, 7.2f, 3.2f}; | ||
vertex_t h_result[] = {1, 0, 1, 0, 0, 0}; | ||
|
||
// Louvain wants store_transposed = FALSE |
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.
Louvain => Leiden
/merge |
This PR defines the C API for Leiden - which should look the same as Louvain.
The implementation (calls to C++ Leiden implementation) are ifdef'ed out. Once #2980 is merged we can provide the actual call here.
Closes #2483
Closes #2486