-
Notifications
You must be signed in to change notification settings - Fork 309
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
Update count_if_e, transform_reduce_e, and transform_e to support edge masking #4001
Merged
rapids-bot
merged 17 commits into
rapidsai:branch-24.02
from
seunghwak:fea_transform_e_mask
Nov 30, 2023
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
345aee7
update transform_e to work with edge masking
seunghwak 0887af9
remove unnecessary checks
seunghwak 69463f4
update fill_edge_property to work with graphs with edge masks
seunghwak bf733aa
udpate count_if_e & transform_reduce_e to work with edge masking
seunghwak 8d070d8
add missing includes
seunghwak 2d74bfe
Merge branch 'branch-23.12' of https://github.com/rapidsai/cugraph in…
seunghwak 0e6d7c1
update transform_e test with edge mask
seunghwak 6807b0d
add edge_property utility function for prims testing
seunghwak 138b1f4
update count_if_e & transform_reduce_e tests to include edge masking
seunghwak 06c15a2
clang-format
seunghwak 57a5593
Merge branch 'branch-23.12' into fea_transform_e_mask
naimnv 5fcf9e6
Merge branch 'branch-23.12' of https://github.com/rapidsai/cugraph in…
seunghwak ff2c849
Merge branch 'fea_transform_e_mask' of github.com:seunghwak/cugraph i…
seunghwak b1f7bc3
Merge branch 'branch-23.12' of https://github.com/rapidsai/cugraph in…
seunghwak 0c10b84
throw an exception when number_of_edges() is called with edge mask
seunghwak 1e3de80
Merge branch 'branch-24.02' of https://github.com/rapidsai/cugraph in…
seunghwak 3e1ce0f
bug fix in tests
seunghwak File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I have no preference. Is there a reason to prefer this syntax over
edge_mask_view_.reset()
?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.
I assume they are same. I guess mainly personal preference.
According to
https://stackoverflow.com/questions/47441623/how-to-assign-nothing-to-stdoptionalt
It seems like
= {}
or= std::nullopt
were initially recommended and.reset()
is added later.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.
But consistency matters, so if we are mainly using
.reset()
elsewhere in our codebase, I am OK to make a change.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.
That was my assessment. A quick check in the code, I see a few calls to
.reset()
and a bunch more assignments tostd::nullopt
.I'm going to merge this PR. We should probably pick a way and create a PR to update things to be consistent.