-
Notifications
You must be signed in to change notification settings - Fork 310
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
Added get_vertex_data()
and get_edge_data()
to SG/MG PropertyGraph
#2444
Conversation
…edge_data to extraced subgraph, fixed issue with internal weight column being returned by property names API, added tests for new features and bug fix.
…hich returns the number of verts that have properties (different than the number of verts). This is needed for GNN use cases.
…rtices_with_properties.
…, minor tests refactoring. Still need to update SG the same way.
…8-pg_updates_for_gnns
…8-pg_updates_for_gnns2
…eneration code the same.
Codecov Report
@@ 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.
|
…8-pg_updates_for_gnns2
…sts which did not catch the bugs, minor formatting improvement.
…8-pg_updates_for_gnns2
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.
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.
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 to me.
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. |
…8-pg_updates_for_gnns2
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.
👍
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 🚀
@gpucibot merge |
closes #2421
Added
get_vertex_data()
andget_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 viapG._vertex_prop_dataframe
andpG._edge_prop_dataframe
.Users can now call
pG.get_vertex_data(vertex_ids, types, columns)
to get vertex properties for the vertices specified byvertex_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.