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

Use Datasets API to Update Notebook Examples #2440

Merged
merged 19 commits into from
Aug 2, 2022

Conversation

oorliu
Copy link
Contributor

@oorliu oorliu commented Jul 25, 2022

Addresses issue #2364

All of the SG notebook examples have been updated to use the newly added Datasets API. Previously, Graph objects were created by specifying a path to the .csv file, calling cuDF to read in the file, and then converting the edge list to a graph.

Now, a dataset object is imported and can create graphs by calling the get_graph() method. Comments and headings have also been updated for continuity.

@oorliu oorliu requested a review from a team as a code owner July 25, 2022 16:14
@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@acostadon acostadon added Notebook improvement Improvement / enhancement to an existing function non-breaking Non-breaking change labels Jul 25, 2022
@BradReesWork BradReesWork added this to the 22.08 milestone Jul 25, 2022
@BradReesWork BradReesWork added this to PRs in 22.08 Release Jul 25, 2022
Copy link
Contributor

@rlratzel rlratzel left a comment

Choose a reason for hiding this comment

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

Looks good. I had one minor suggestion and an observation which need not hold up approval.

"metadata": {},
"outputs": [],
"source": [
"# You can also just get the edgelist\n",
Copy link
Contributor

Choose a reason for hiding this comment

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

I would just remove this comment since it's probably not needed, and it sounds a little less formal that the others anyway.

Comment on lines +214 to +215
"G = karate.get_graph()\n",
"G = G.to_undirected()"
Copy link
Contributor

@rlratzel rlratzel Jul 28, 2022

Choose a reason for hiding this comment

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

This change is perhaps out-of-scope for this PR, but it would be nice if get_graph accepted a create_using option similar to cugraph.from_edgelist that allowed you to get a directed or undirected graph.

@BradReesWork
Copy link
Member

rerun tests

@rlratzel
Copy link
Contributor

rlratzel commented Aug 2, 2022

@gpucibot merge

@BradReesWork
Copy link
Member

@gpucibot merge

@rapids-bot rapids-bot bot merged commit b74e22a into rapidsai:branch-22.08 Aug 2, 2022
22.08 Release automation moved this from PRs to Done Aug 2, 2022
@oorliu oorliu deleted the datasets-api-nb branch August 3, 2022 02:53
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
No open projects
22.08 Release
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

5 participants