diff --git a/python/cugraph/cugraph/tests/link_analysis/test_hits.py b/python/cugraph/cugraph/tests/link_analysis/test_hits.py index c0d90395c4a..fcfd8cc5318 100644 --- a/python/cugraph/cugraph/tests/link_analysis/test_hits.py +++ b/python/cugraph/cugraph/tests/link_analysis/test_hits.py @@ -66,9 +66,9 @@ def input_expected_output(input_combo): # in the dictionary. This allows separate Nx-only tests that may have run # previously on the same input_combo to save their results for re-use # elsewhere. - dataset_path = input_combo["graph_file"].get_path() - Gnx = utils.generate_nx_graph_from_file(dataset_path, directed=True) if "nxResults" not in input_combo: + dataset_path = input_combo["graph_file"].get_path() + Gnx = utils.generate_nx_graph_from_file(dataset_path, directed=True) nxResults = nx.hits( Gnx, input_combo["max_iter"], input_combo["tol"], normalized=True )