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

Allow PropertyGraph default_edge_weight to be used to add an edge weight value on extracted Graphs even when a weight property wasn't specified #2071

Merged

Conversation

rlratzel
Copy link
Contributor

@rlratzel rlratzel commented Feb 14, 2022

Allows a Graph to be extracted with a default weight value even if an edge property for a weight is not specified.
This PR also changes the arg names that are intended to take column name strings to make it more obvious that strings are expected and not Column/Series objects.

… wrapping in a class wrapper instead of a function (where the return type is no longer a class type, and isinstance() unexpectedly fails). Added tests.
…hanged num_vertices property impl for better performance, added get_vertices(), allow a None type_name for add_*_data(), updated docstrings, changed the edge_data added to Graphs to be a DataFrame for efficiency, added tests and benchmarks, refactored and added test fixtures, updated pytest.ini for new benchmarks.
… extracted Graphs even when a weight property wasn't specified.
@rlratzel rlratzel added improvement Improvement / enhancement to an existing function non-breaking Non-breaking change python labels Feb 14, 2022
@rlratzel rlratzel added this to the 22.04 milestone Feb 14, 2022
@rlratzel rlratzel requested a review from a team as a code owner February 14, 2022 05:11
@rlratzel rlratzel self-assigned this Feb 14, 2022
Copy link
Contributor

@acostadon acostadon left a comment

Choose a reason for hiding this comment

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

didn't find any issues. I noticedthe column_name variable name change.

@rlratzel
Copy link
Contributor Author

didn't find any issues. I noticedthe column_name variable name change.

Yes, thanks, I changed that to make it more obvious that it's a name and not an obj. I'll update the PR description too.

@rlratzel
Copy link
Contributor Author

@gpucibot merge

@rapids-bot rapids-bot bot merged commit 5f971fe into rapidsai:branch-22.04 Feb 15, 2022
@rlratzel rlratzel deleted the branch-22.04-propgraph_updates branch June 17, 2022 00:31
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.

4 participants