Name | graph-datasets JSON |
Version |
0.14.1
JSON |
| download |
home_page | None |
Summary | Load graph datasets. |
upload_time | 2025-02-12 06:40:18 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.8 |
license | MIT License
Copyright (c) 2023-present Galo.gm
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE. |
keywords |
datasets
graph
|
VCS |
 |
bugtrack_url |
|
requirements |
ogb
gdown
wget
torch_geometric
texttable
pandas
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# Graph Datasets
<div align="center">
[](https://pypi.org/project/graph-datasets/) [](https://github.com/galogm/graph_datasets/tags)
</div>
## Installation
- python>=3.8
- torch>=1.12
- torch_geometric>=2.0
- dgl>=1.1
```bash
$ python -m pip install graph_datasets
```
## Usage
See [Graph Datasets](https://galogm.github.io/graph_datasets_docs) for docs.
```python
from graph_datasets import load_data
graph, label, n_clusters = load_data(
dataset_name='cora',
directory='./data',
source='pyg',
verbosity=1,
)
```
<!-- - DEV
```bash
# install cuda 11.3 if necessary
$ sudo bash scripts/cuda.sh
# see installation logs in logs/install.log
$ nohup bash scripts/install-dev.sh && bash scripts/install.sh > logs/install-dev.log &
```
- PROD
```bash
# see installation logs in logs/install.log
$ nohup bash scripts/install.sh > logs/install.log &
``` -->
<!-- Statistics begins -->
## Statistics
| idx | source | dataset | n_nodes | n_feats | n_edges | n_clusters |
|------:|:--------:|:---------------:|----------:|----------:|------------:|-------------:|
| 1 | pyg | cora | 2,708 | 1,433 | 10,556 | 7 |
| 2 | pyg | citeseer | 3,327 | 3,703 | 9,104 | 6 |
| 3 | pyg | pubmed | 19,717 | 500 | 88,648 | 3 |
| 4 | pyg | corafull | 19,793 | 8,710 | 126,842 | 70 |
| 5 | pyg | reddit | 232,965 | 602 | 114,615,892 | 41 |
| 6 | pyg | chameleon | 2,277 | 2,325 | 62,742 | 5 |
| 7 | pyg | squirrel | 5,201 | 2,089 | 396,706 | 5 |
| 8 | pyg | actor | 7,600 | 932 | 53,318 | 5 |
| 9 | pyg | cornell | 183 | 1,703 | 554 | 5 |
| 10 | pyg | texas | 183 | 1,703 | 558 | 5 |
| 11 | pyg | wisconsin | 251 | 1,703 | 900 | 5 |
| 12 | pyg | computers | 13,752 | 767 | 491,722 | 10 |
| 13 | pyg | photo | 7,650 | 745 | 238,162 | 8 |
| 14 | pyg | cs | 18,333 | 6,805 | 163,788 | 15 |
| 15 | pyg | physics | 34,493 | 8,415 | 495,924 | 5 |
| 16 | pyg | wikics | 11,701 | 300 | 431,206 | 10 |
| 17 | dgl | cora | 2,708 | 1,433 | 10,556 | 7 |
| 18 | dgl | citeseer | 3,327 | 3,703 | 9,104 | 6 |
| 19 | dgl | pubmed | 19,717 | 500 | 88,648 | 3 |
| 20 | dgl | corafull | 19,793 | 8,710 | 126,842 | 70 |
| 21 | dgl | reddit | 232,965 | 602 | 114,615,892 | 41 |
| 22 | dgl | chameleon | 2,277 | 2,325 | 62,742 | 5 |
| 23 | dgl | squirrel | 5,201 | 2,089 | 396,706 | 5 |
| 24 | dgl | actor | 7,600 | 932 | 53,318 | 5 |
| 25 | dgl | cornell | 183 | 1,703 | 554 | 5 |
| 26 | dgl | texas | 183 | 1,703 | 558 | 5 |
| 27 | dgl | wisconsin | 251 | 1,703 | 900 | 5 |
| 28 | ogb | products | 2,449,029 | 100 | 123,718,024 | 47 |
| 29 | ogb | arxiv | 169,343 | 128 | 2,315,598 | 40 |
| 30 | sdcn | dblp | 4,057 | 334 | 7,056 | 4 |
| 31 | sdcn | acm | 3,025 | 1,870 | 26,256 | 3 |
| 32 | cola | blogcatalog | 5,196 | 8,189 | 343,486 | 6 |
| 33 | cola | flickr | 7,575 | 12,047 | 479,476 | 9 |
| 34 | linkx | snap-patents | 2,923,922 | 269 | 27,945,090 | 5 |
| 35 | linkx | pokec | 1,632,803 | 65 | 44,603,928 | 3 |
| 36 | linkx | genius | 421,961 | 12 | 1,845,736 | 2 |
| 37 | linkx | arxiv-year | 169,343 | 128 | 2,315,598 | 5 |
| 38 | linkx | Penn94 | 41,554 | 4,814 | 2,724,458 | 3 |
| 39 | linkx | twitch-gamers | 168,114 | 7 | 13,595,114 | 2 |
| 40 | linkx | wiki | 1,925,342 | 600 | 485,014,138 | 6 |
| 41 | linkx | cornell | 183 | 1,703 | 554 | 5 |
| 42 | linkx | chameleon | 2,277 | 2,325 | 62,742 | 5 |
| 43 | linkx | film | 7,600 | 932 | 53,318 | 5 |
| 44 | linkx | squirrel | 5,201 | 2,089 | 396,706 | 5 |
| 45 | linkx | texas | 183 | 1,703 | 558 | 5 |
| 46 | linkx | wisconsin | 251 | 1,703 | 900 | 5 |
| 47 | linkx | yelp-chi | 45,954 | 32 | 7,693,958 | 2 |
| 48 | linkx | deezer-europe | 28,281 | 31,241 | 185,504 | 2 |
| 49 | linkx | Amherst41 | 2,235 | 1,193 | 181,908 | 3 |
| 50 | linkx | Cornell5 | 18,660 | 4,735 | 1,581,554 | 3 |
| 51 | linkx | Johns Hopkins55 | 5,180 | 2,406 | 373,172 | 3 |
| 52 | linkx | Reed98 | 962 | 745 | 37,624 | 3 |
| 53 | critical | roman-empire | 22,662 | 300 | 65,854 | 18 |
| 54 | critical | amazon-ratings | 24,492 | 300 | 186,100 | 5 |
| 55 | critical | minesweeper | 10,000 | 7 | 78,804 | 2 |
| 56 | critical | tolokers | 11,758 | 10 | 1,038,000 | 2 |
| 57 | critical | questions | 48,921 | 301 | 307,080 | 2 |
| 58 | critical | squirrel | 2,223 | 2,089 | 93,996 | 5 |
| 59 | critical | chameleon | 890 | 2,325 | 17,708 | 5 |
<!-- Statistics ends -->
## Requirements
See [requirements-dev.txt](./requirements-dev.txt), [requirements.txt](./requirements.txt) and [pyproject.toml:dependencies](./pyproject.toml).
## Contributing
See [CONTRIBUTING.md](./CONTRIBUTING.md).
Raw data
{
"_id": null,
"home_page": null,
"name": "graph-datasets",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": "datasets, graph",
"author": null,
"author_email": "\"galo.gm\" <galo.gm.work@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/59/a9/9f95ca35eecb5b435fd2b8c0b48e12b9e1bca6eb41018f170060ac124a38/graph_datasets-0.14.1.tar.gz",
"platform": null,
"description": "# Graph Datasets\n\n<div align=\"center\">\n\n[](https://pypi.org/project/graph-datasets/) [](https://github.com/galogm/graph_datasets/tags)\n\n</div>\n\n## Installation\n\n- python>=3.8\n- torch>=1.12\n- torch_geometric>=2.0\n- dgl>=1.1\n\n```bash\n$ python -m pip install graph_datasets\n```\n\n## Usage\nSee [Graph Datasets](https://galogm.github.io/graph_datasets_docs) for docs.\n\n```python\nfrom graph_datasets import load_data\n\ngraph, label, n_clusters = load_data(\n dataset_name='cora',\n directory='./data',\n source='pyg',\n verbosity=1,\n)\n```\n\n<!-- - DEV\n\n```bash\n# install cuda 11.3 if necessary\n$ sudo bash scripts/cuda.sh\n# see installation logs in logs/install.log\n$ nohup bash scripts/install-dev.sh && bash scripts/install.sh > logs/install-dev.log &\n```\n\n- PROD\n\n```bash\n# see installation logs in logs/install.log\n$ nohup bash scripts/install.sh > logs/install.log &\n``` -->\n\n<!-- Statistics begins -->\n## Statistics\n| idx | source | dataset | n_nodes | n_feats | n_edges | n_clusters |\n|------:|:--------:|:---------------:|----------:|----------:|------------:|-------------:|\n| 1 | pyg | cora | 2,708 | 1,433 | 10,556 | 7 |\n| 2 | pyg | citeseer | 3,327 | 3,703 | 9,104 | 6 |\n| 3 | pyg | pubmed | 19,717 | 500 | 88,648 | 3 |\n| 4 | pyg | corafull | 19,793 | 8,710 | 126,842 | 70 |\n| 5 | pyg | reddit | 232,965 | 602 | 114,615,892 | 41 |\n| 6 | pyg | chameleon | 2,277 | 2,325 | 62,742 | 5 |\n| 7 | pyg | squirrel | 5,201 | 2,089 | 396,706 | 5 |\n| 8 | pyg | actor | 7,600 | 932 | 53,318 | 5 |\n| 9 | pyg | cornell | 183 | 1,703 | 554 | 5 |\n| 10 | pyg | texas | 183 | 1,703 | 558 | 5 |\n| 11 | pyg | wisconsin | 251 | 1,703 | 900 | 5 |\n| 12 | pyg | computers | 13,752 | 767 | 491,722 | 10 |\n| 13 | pyg | photo | 7,650 | 745 | 238,162 | 8 |\n| 14 | pyg | cs | 18,333 | 6,805 | 163,788 | 15 |\n| 15 | pyg | physics | 34,493 | 8,415 | 495,924 | 5 |\n| 16 | pyg | wikics | 11,701 | 300 | 431,206 | 10 |\n| 17 | dgl | cora | 2,708 | 1,433 | 10,556 | 7 |\n| 18 | dgl | citeseer | 3,327 | 3,703 | 9,104 | 6 |\n| 19 | dgl | pubmed | 19,717 | 500 | 88,648 | 3 |\n| 20 | dgl | corafull | 19,793 | 8,710 | 126,842 | 70 |\n| 21 | dgl | reddit | 232,965 | 602 | 114,615,892 | 41 |\n| 22 | dgl | chameleon | 2,277 | 2,325 | 62,742 | 5 |\n| 23 | dgl | squirrel | 5,201 | 2,089 | 396,706 | 5 |\n| 24 | dgl | actor | 7,600 | 932 | 53,318 | 5 |\n| 25 | dgl | cornell | 183 | 1,703 | 554 | 5 |\n| 26 | dgl | texas | 183 | 1,703 | 558 | 5 |\n| 27 | dgl | wisconsin | 251 | 1,703 | 900 | 5 |\n| 28 | ogb | products | 2,449,029 | 100 | 123,718,024 | 47 |\n| 29 | ogb | arxiv | 169,343 | 128 | 2,315,598 | 40 |\n| 30 | sdcn | dblp | 4,057 | 334 | 7,056 | 4 |\n| 31 | sdcn | acm | 3,025 | 1,870 | 26,256 | 3 |\n| 32 | cola | blogcatalog | 5,196 | 8,189 | 343,486 | 6 |\n| 33 | cola | flickr | 7,575 | 12,047 | 479,476 | 9 |\n| 34 | linkx | snap-patents | 2,923,922 | 269 | 27,945,090 | 5 |\n| 35 | linkx | pokec | 1,632,803 | 65 | 44,603,928 | 3 |\n| 36 | linkx | genius | 421,961 | 12 | 1,845,736 | 2 |\n| 37 | linkx | arxiv-year | 169,343 | 128 | 2,315,598 | 5 |\n| 38 | linkx | Penn94 | 41,554 | 4,814 | 2,724,458 | 3 |\n| 39 | linkx | twitch-gamers | 168,114 | 7 | 13,595,114 | 2 |\n| 40 | linkx | wiki | 1,925,342 | 600 | 485,014,138 | 6 |\n| 41 | linkx | cornell | 183 | 1,703 | 554 | 5 |\n| 42 | linkx | chameleon | 2,277 | 2,325 | 62,742 | 5 |\n| 43 | linkx | film | 7,600 | 932 | 53,318 | 5 |\n| 44 | linkx | squirrel | 5,201 | 2,089 | 396,706 | 5 |\n| 45 | linkx | texas | 183 | 1,703 | 558 | 5 |\n| 46 | linkx | wisconsin | 251 | 1,703 | 900 | 5 |\n| 47 | linkx | yelp-chi | 45,954 | 32 | 7,693,958 | 2 |\n| 48 | linkx | deezer-europe | 28,281 | 31,241 | 185,504 | 2 |\n| 49 | linkx | Amherst41 | 2,235 | 1,193 | 181,908 | 3 |\n| 50 | linkx | Cornell5 | 18,660 | 4,735 | 1,581,554 | 3 |\n| 51 | linkx | Johns Hopkins55 | 5,180 | 2,406 | 373,172 | 3 |\n| 52 | linkx | Reed98 | 962 | 745 | 37,624 | 3 |\n| 53 | critical | roman-empire | 22,662 | 300 | 65,854 | 18 |\n| 54 | critical | amazon-ratings | 24,492 | 300 | 186,100 | 5 |\n| 55 | critical | minesweeper | 10,000 | 7 | 78,804 | 2 |\n| 56 | critical | tolokers | 11,758 | 10 | 1,038,000 | 2 |\n| 57 | critical | questions | 48,921 | 301 | 307,080 | 2 |\n| 58 | critical | squirrel | 2,223 | 2,089 | 93,996 | 5 |\n| 59 | critical | chameleon | 890 | 2,325 | 17,708 | 5 |\n<!-- Statistics ends -->\n\n## Requirements\n\nSee [requirements-dev.txt](./requirements-dev.txt), [requirements.txt](./requirements.txt) and [pyproject.toml:dependencies](./pyproject.toml).\n\n## Contributing\n\nSee [CONTRIBUTING.md](./CONTRIBUTING.md).\n",
"bugtrack_url": null,
"license": "MIT License\n \n Copyright (c) 2023-present Galo.gm\n \n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n \n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n \n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.",
"summary": "Load graph datasets.",
"version": "0.14.1",
"project_urls": {
"Bug Tracker": "https://github.com/galogm/graph_datasets/issues",
"Homepage": "https://github.com/galogm/graph_datasets"
},
"split_keywords": [
"datasets",
" graph"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "4f628180189e2aee7240329c74f65c2a8028d47ccc7396986694349a1485bb46",
"md5": "00dfba54671a7aeebf629b8c95943da1",
"sha256": "4b6103cb18b3f0b8acd1e739cc30ce20027c3cf230cea147f8cba6f397d88d53"
},
"downloads": -1,
"filename": "graph_datasets-0.14.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "00dfba54671a7aeebf629b8c95943da1",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 22609,
"upload_time": "2025-02-12T06:40:17",
"upload_time_iso_8601": "2025-02-12T06:40:17.340537Z",
"url": "https://files.pythonhosted.org/packages/4f/62/8180189e2aee7240329c74f65c2a8028d47ccc7396986694349a1485bb46/graph_datasets-0.14.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "59a99f95ca35eecb5b435fd2b8c0b48e12b9e1bca6eb41018f170060ac124a38",
"md5": "41d4a4502adfc9bae5df69e03aa79ff1",
"sha256": "f699dd7b951eee0db28f378dfd4782440f705da96f3e16dd2c468dd1ca0c0933"
},
"downloads": -1,
"filename": "graph_datasets-0.14.1.tar.gz",
"has_sig": false,
"md5_digest": "41d4a4502adfc9bae5df69e03aa79ff1",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 69829,
"upload_time": "2025-02-12T06:40:18",
"upload_time_iso_8601": "2025-02-12T06:40:18.972615Z",
"url": "https://files.pythonhosted.org/packages/59/a9/9f95ca35eecb5b435fd2b8c0b48e12b9e1bca6eb41018f170060ac124a38/graph_datasets-0.14.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-02-12 06:40:18",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "galogm",
"github_project": "graph_datasets",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [
{
"name": "ogb",
"specs": []
},
{
"name": "gdown",
"specs": []
},
{
"name": "wget",
"specs": []
},
{
"name": "torch_geometric",
"specs": [
[
">=",
"2.0"
]
]
},
{
"name": "texttable",
"specs": []
},
{
"name": "pandas",
"specs": []
}
],
"lcname": "graph-datasets"
}