Skip to content

Commit

Permalink
Fix in Docs to address question asked in issue 4182 (#4204)
Browse files Browse the repository at this point in the history
Added compute comment and changed DiGraph to Graph(directed=True)
Tested in a notebook.

Addresses question in #4182

Authors:
  - Don Acosta (https://github.com/acostadon)

Approvers:
  - Brad Rees (https://github.com/BradReesWork)

URL: #4204
  • Loading branch information
acostadon authored Mar 6, 2024
1 parent 37d5d48 commit c17ba39
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/cugraph/source/api_docs/cugraph/dask-cugraph.rst
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,15 @@ Example
)
# create graph from input data
G = cugraph.DiGraph()
G = cugraph.Graph(directed=True)
G.from_dask_cudf_edgelist(e_list, source='src', destination='dst')
# run PageRank
pr_df = dask_cugraph.pagerank(G, tol=1e-4)
# need to call compute to generate results
pr_df.compute()
# cluster clean up
Comms.destroy()
client.close()
Expand Down

0 comments on commit c17ba39

Please sign in to comment.