forked from rapidsai/cugraph
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Datasets API Update: Add Extra Params and Improve Testing (rapidsai#2453
) Adding two new parameters to the `get_graph()` method within the datasets API. - `default_direction` allows users to get only undirected graph objects. - `weights` will specify whether or not the cugraph.Graph object has an `edge_attr` field. `test_dataset.py` has been updated to: 1. Add coverage for the new parameters 2. Removing fetching datasets from the web when it's unnecessary. Docstrings have also been updated for clarity. Authors: - Ralph Liu (https://github.com/oorliu) Approvers: - Rick Ratzel (https://github.com/rlratzel) URL: rapidsai#2453
- Loading branch information
Showing
5 changed files
with
106 additions
and
29 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
8 changes: 5 additions & 3 deletions
8
python/cugraph/cugraph/experimental/datasets/metadata/karate.yaml
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
21 changes: 21 additions & 0 deletions
21
python/cugraph/cugraph/experimental/datasets/metadata/karate_data.yaml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: karate-data | ||
file_type: .csv | ||
author: Zachary W. | ||
url: https://raw.githubusercontent.com/rapidsai/cugraph/branch-22.08/datasets/karate-data.csv | ||
refs: | ||
W. W. Zachary, An information flow model for conflict and fission in small groups, | ||
Journal of Anthropological Research 33, 452-473 (1977). | ||
delim: "\t" | ||
col_names: | ||
- src | ||
- dst | ||
col_types: | ||
- int32 | ||
- int32 | ||
has_loop: true | ||
is_directed: true | ||
is_multigraph: false | ||
is_symmetric: true | ||
number_of_edges: 156 | ||
number_of_nodes: 34 | ||
number_of_lines: 156 |
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