-
Notifications
You must be signed in to change notification settings - Fork 310
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor and Fix
test_induced_subgraph_mg
(#4183)
Addresses [#459](rapidsai/graph_dl#459) Changes: - Updates `cugraph/community/induced_subgraph.py` to use `Series.iloc` to avoid a `DeprecationWarning` when calling the function - This PR fixes a bug in `test_mg_induced_subgraph` where it would break when passed an `ndarray` object while trying to construct an MG induced sub-graph. - This unit test has been cleaned up to use the `cugraph.datasets` API to construct SG and MG graph objects, as well as the `sample_random_vertices` function to construct sub-graphs the proper way. Notes: - The `offsets` parameter is not ready for testing yet. - There is no one-hop neighbor check in place to verify if the sub-graphs are actually generated correctly. - This test will be updates once those are available. Authors: - Ralph Liu (https://github.com/nv-rliu) Approvers: - Rick Ratzel (https://github.com/rlratzel) - Joseph Nke (https://github.com/jnke2016) URL: #4183
- Loading branch information
Showing
2 changed files
with
47 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters