-
Notifications
You must be signed in to change notification settings - Fork 303
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
extract the edgelist from the graph #4750
base: branch-24.12
Are you sure you want to change the base?
extract the edgelist from the graph #4750
Conversation
@@ -979,6 +980,83 @@ def convert_to_cudf(cp_arrays): | |||
|
|||
return ddf | |||
|
|||
def decompress_to_edgelist( | |||
self, | |||
original: bool = True |
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 think this would be more descriptive if it was named return_unrenumbered_edgelist
|
||
Returns | ||
------- | ||
ego_edge_lists : dask_cudf.DataFrame |
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.
Is this the right name for the return value? Also, should it be plural? I figured it would be just edgelist
>>> (sources, destinations, edge_weights, _, _) = | ||
... pylibcugraph.induced_subgraph( | ||
... resource_handle, G, 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.
Shouldn't this be calling decompress_to_edgelist
somewhere?
@@ -979,6 +980,83 @@ def convert_to_cudf(cp_arrays): | |||
|
|||
return ddf | |||
|
|||
def decompress_to_edgelist( |
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 only see this on the MG Graph API, shouldn't this also be added to the SG Graph API?
This PR exposes the C++ function decompress_to_edgelist to the C, PLC and Python API. This will enable the extraction of the edgelist from a graph which is currently not supported.