Skip to content

Commit

Permalink
Unload pre-existing internal DF
Browse files Browse the repository at this point in the history
  • Loading branch information
nv-rliu committed Mar 13, 2024
1 parent 2c77751 commit 03892ec
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,11 @@ def setup_function():
@pytest.mark.parametrize("dataset", DATASETS)
@pytest.mark.parametrize("directed", IS_DIRECTED)
def test_dask_mg_katz_centrality(dask_client, dataset, directed):

input_data_path = dataset.get_path()
print(f"dataset={input_data_path}")

dataset.unload()
ddf = dataset.get_dask_edgelist()

dg = cugraph.Graph(directed=True)
dg.from_dask_cudf_edgelist(ddf, "src", "dst", store_transposed=True)

Expand Down Expand Up @@ -105,8 +104,8 @@ def test_dask_mg_katz_centrality(dask_client, dataset, directed):
@pytest.mark.parametrize("dataset", DATASETS)
@pytest.mark.parametrize("directed", IS_DIRECTED)
def test_dask_mg_katz_centrality_nstart(dask_client, dataset, directed):
dataset.unload()
ddf = dataset.get_dask_edgelist()

dg = cugraph.Graph(directed=True)
dg.from_dask_cudf_edgelist(ddf, "src", "dst", store_transposed=True)

Expand Down Expand Up @@ -144,8 +143,8 @@ def test_dask_mg_katz_centrality_nstart(dask_client, dataset, directed):
@pytest.mark.mg
@pytest.mark.parametrize("dataset", DATASETS)
def test_dask_mg_katz_centrality_transposed_false(dask_client, dataset):
dataset.unload()
ddf = dataset.get_dask_edgelist()

dg = cugraph.Graph(directed=True)
dg.from_dask_cudf_edgelist(ddf, "src", "dst", store_transposed=False)

Expand Down

0 comments on commit 03892ec

Please sign in to comment.