From c17ba39111e3215cef15e58f6852f549b20f54b5 Mon Sep 17 00:00:00 2001 From: Don Acosta <97529984+acostadon@users.noreply.github.com> Date: Wed, 6 Mar 2024 09:08:53 -0500 Subject: [PATCH] Fix in Docs to address question asked in issue 4182 (#4204) 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: https://github.com/rapidsai/cugraph/pull/4204 --- docs/cugraph/source/api_docs/cugraph/dask-cugraph.rst | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/cugraph/source/api_docs/cugraph/dask-cugraph.rst b/docs/cugraph/source/api_docs/cugraph/dask-cugraph.rst index 772d3abc45f..a2d49789053 100644 --- a/docs/cugraph/source/api_docs/cugraph/dask-cugraph.rst +++ b/docs/cugraph/source/api_docs/cugraph/dask-cugraph.rst @@ -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()