# GitHub Stargazers: Graph Classification Dataset The GitHub Stargazers graph classification dataset of the Karate Club project: 12,725 small social networks of developers who starred popular machine-learning or web-development repositories on GitHub (up to August 2019). Nodes are users and links are follower relationships; each graph is the largest connected component of its repository group (at least 10 users) and has a binary label. This copy holds 2,985,781 links and 12,725 graph labels (6,808 labelled 1 and 5,917 labelled 0). ## At a glance - **Platform:** GitHub - **Period covered:** Up to August 2019 (as the dataset's description states) - **Tables:** edges (2,985,781 rows), annotations (12,725 rows) - **Structure:** Multilayer (several networks), Labelled data - **Version:** 1.0.0 - **Licence:** Not stated; SPDX `NOASSERTION` - **Original DOI:** 10.1145/3340531.3412757 ## Contents | Path | What it is | |---|---| | `data/edges.parquet` | The edges table (canonical, Parquet) | | `csv/edges.csv.gz` | The same table as gzip CSV | | `graph/edges.tsv.gz` | The edges as a tab-separated file for graph tools | | `data/annotations.parquet` | The annotations table (canonical, Parquet) | | `csv/annotations.csv.gz` | The same table as gzip CSV | | `docs/upstream/` | The upstream documentation, verbatim | | `original/` | The 4 upstream file(s), byte for byte | | `datapackage.json`, `croissant.json` | Machine-readable descriptions of this package | | `CITATION.cff`, `CITATION.bib` | How to cite | | `LICENSE.md` | Licence and terms | | `manifest-sha256.txt` | SHA-256 checksum of every file | ## Tables and columns ### edges (2,985,781 rows) Links of a network. One row per link as upstream recorded it: repeated links and events are never merged. | Column | Type | Meaning | |---|---|---| | `src` | string | The first user of a follower link, as an index local to its graph (0-based). The file lists each link once, and the smaller index is always first. | | `dst` | string | The second user of the link, a local index (see src). The dataset documentation says the graphs are undirected. | | `layer` | string | The number of the graph the link belongs to (the key of the JSON file). Node indices are local to a graph, so the same index in different graphs is a different user; use (layer, node) as the identity of a user. | ### annotations (12,725 rows) Labels attached to posts, users, threads, links or text spans, by people, models or rules. | Column | Type | Meaning | |---|---|---| | `target_id` | string | The graph number (id in the target file); joins to edges.layer. | | `label` | string | The binary label of the graph (target in the file): 0 or 1. The documentation says the label separates web-development from machine-learning developers but does not say which value is which. | | `target_type` | string | Always `graph`: the label belongs to a whole graph, not to a user or link. | | `task` | string | The classification task as the dataset documentation states it: deciding whether a social network belongs to web or machine-learning developers. | ## Quick start Python (pandas): ```python import pandas as pd df = pd.read_parquet("https://echo.directory/download/github-stargazers/v1.0.0/data/edges.parquet") ``` DuckDB (reads over HTTP without downloading the file first): ```sql SELECT * FROM 'https://echo.directory/download/github-stargazers/v1.0.0/data/edges.parquet' LIMIT 10; ``` R (arrow): ```r df <- arrow::read_parquet("https://echo.directory/download/github-stargazers/v1.0.0/data/edges.parquet") ``` ## How this package was made ECHO converted the upstream file(s) listed under `original/` into the tables above, following the [ECHO Data Package 1.0.0](https://echo.directory/docs/edp/1.0/) standard. Every value was checked against the source during conversion: no row was dropped and no value was changed except as described here. - The documentation (README.txt, SNAP) states 12,725 graphs, 10 to 957 nodes per graph, undirected, no node or edge features, binary graph labels. The data agree: 12,725 graphs with 10 to 957 distinct nodes each, and every graph appears in the label file. - There are 2,985,781 links in all, 9 to 4668 per graph. 0 links join a node to itself, 0 rows repeat a link of the same graph, and the first index is not smaller than the second in 0 rows. - The table records only links, so the nodes of a graph are the indices that occur in its links (the documentation says each graph is a largest connected component, so none is expected to be isolated). The files hold no user names or other profile data. - The Karate Club repository also holds other datasets; only the GitHub Stargazers files are in this package. The JSON file's graph keys are the strings '0' to '12724'. ## Credit - **Benedek Rozemberczki**, creator (https://github.com/benedekrozemberczki/karateclub): named in the citation that comes with the data - **Oliver Kiss**, creator - **Rik Sarkar**, creator - **GitHub**, publisher: the platform whose repository stargazers and follower links the graphs describe - **SNAP: Stanford Network Analysis Project (Jure Leskovec)**, distributor (https://snap.stanford.edu/data/github_stargazers.html) - **ECHO, Syracuse University**, packager (https://echo.directory) The upstream documentation is preserved verbatim in `docs/upstream/`. ## Licence and terms Not stated; SPDX `NOASSERTION`. See `LICENSE.md` for the upstream terms. The SNAP page for this dataset (https://snap.stanford.edu/data/github_stargazers.html) states no licence or terms of use. The Karate Club repository it points to is licensed under the GNU General Public License v3.0 on GitHub, but its page makes no statement about the datasets. ## Citation ```bibtex @misc{echo2026, title = {ECHO: Exploratory Compendium of Humanity Online}, author = {Switzer, Braden and Zafarani, Reza}, year = {2026}, url = {https://echo.directory}, note = {Syracuse University} } @inproceedings{Rozemberczki_2020, series = {CIKM ’20}, title = {Karate Club: An API Oriented Open-Source Python Framework for Unsupervised Learning on Graphs}, url = {http://dx.doi.org/10.1145/3340531.3412757}, doi = {10.1145/3340531.3412757}, booktitle = {Proceedings of the 29th ACM International Conference on Information & Knowledge Management}, publisher = {ACM}, author = {Rozemberczki, Benedek and Kiss, Oliver and Sarkar, Rik}, year = {2020}, month = Oct, pages = {3125–3132}, collection = {CIKM ’20} } @misc{karateclub2020, title = {An API Oriented Open-source Python Framework for Unsupervised Learning on Graphs}, author = {Rozemberczki, Benedek and Kiss, Oliver and Sarkar, Rik}, year = {2020}, eprint = {2003.04819}, archiveprefix = {arXiv}, primaryclass = {cs.LG} } ``` ## Versions This is version 1.0.0. Every version is kept unchanged at its own address (`https://echo.directory/download/github-stargazers/v1.0.0/`); `CHANGELOG.md` lists what changed between versions.