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

Added get_vertex_data() and get_edge_data() to SG/MG PropertyGraph #2444

Merged

Conversation

rlratzel
Copy link
Contributor

@rlratzel rlratzel commented Jul 26, 2022

closes #2421

Added get_vertex_data() and get_edge_data() to SG and MG PropertyGraph, and corresponding tests.

Prior to these methods, users had to either call pG.annotate_dataframe() to get properties for edges or access the internal debug dataframes directly via pG._vertex_prop_dataframe and pG._edge_prop_dataframe.

Users can now call pG.get_vertex_data(vertex_ids, types, columns) to get vertex properties for the vertices specified by vertex_ids, and 'types', with data for each column specified. All args are optional and default to "all" for each category. pG.get_edge_data(edge_ids, types, columns) works the same for edges. The return value for both is a dataframe.

@rlratzel rlratzel added improvement Improvement / enhancement to an existing function non-breaking Non-breaking change labels Jul 26, 2022
@rlratzel rlratzel added this to the 22.08 milestone Jul 26, 2022
@rlratzel rlratzel self-assigned this Jul 26, 2022
@codecov-commenter
Copy link

codecov-commenter commented Jul 26, 2022

Codecov Report

❗ No coverage uploaded for pull request base (branch-22.08@6b62002). Click here to learn what that means.
The diff coverage is n/a.

@@               Coverage Diff               @@
##             branch-22.08    #2444   +/-   ##
===============================================
  Coverage                ?   61.14%           
===============================================
  Files                   ?      106           
  Lines                   ?     5539           
  Branches                ?        0           
===============================================
  Hits                    ?     3387           
  Misses                  ?     2152           
  Partials                ?        0           

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 6b62002...4f2679b. Read the comment docs.

@rlratzel rlratzel marked this pull request as ready for review July 26, 2022 03:14
@rlratzel rlratzel requested a review from a team as a code owner July 26, 2022 03:14
Copy link
Member

@VibhuJawa VibhuJawa left a comment

Choose a reason for hiding this comment

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

Have requested changes to avoid cudf/client side calls.

Thanks for working on this.

…rent lack of support for unrenumbering on MG for pylibcugraph-based algos, updated tests accordingly.
Copy link
Member

@VibhuJawa VibhuJawa left a comment

Choose a reason for hiding this comment

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

LGTM to me.

@rlratzel
Copy link
Contributor Author

rlratzel commented Jul 29, 2022

rerun tests

There was a compile failure from a cython-generated cpp file not associated with this PR, so rerunning while I investigate in case it's somehow a transient failure on the CI side.

Copy link
Member

@alexbarghi-nv alexbarghi-nv left a comment

Choose a reason for hiding this comment

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

👍

Copy link
Contributor

@eriknw eriknw left a comment

Choose a reason for hiding this comment

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

LGTM 🚀

@BradReesWork
Copy link
Member

@gpucibot merge

@rapids-bot rapids-bot bot merged commit 2263011 into rapidsai:branch-22.08 Jul 29, 2022
@rlratzel rlratzel deleted the branch-22.08-pg_updates_for_gnns2 branch September 28, 2023 20:41
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.

[FEA] API for PropetyGraphs for get_edge_data and get_vertex_data
6 participants