# YouTube Social Network SNAP's YouTube friendship network (data provided by Alan Mislove and colleagues), in which users form friendships and can create groups that other users join; the groups are the ground-truth communities. SNAP treats each connected component within a group as a community and removed communities of fewer than 3 nodes. The network is the largest connected component. This copy holds the network (2,987,624 links among 1,134,890 nodes), the 16,386 ground-truth communities (129,202 node-community memberships) and the 5,000 top-quality communities that SNAP selects from them (72,959 memberships). ## At a glance - **Platform:** YouTube - **Tables:** edges (2,987,624 rows), memberships (129,202 rows), x_memberships_top5000 (72,959 rows) - **Version:** 1.0.0 - **Licence:** Not stated; SPDX `NOASSERTION` - **Original DOI:** 10.1145/1298306.1298311 ## 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/memberships.parquet` | The memberships table (canonical, Parquet) | | `csv/memberships.csv.gz` | The same table as gzip CSV | | `data/x_memberships_top5000.parquet` | The x_memberships_top5000 table (canonical, Parquet) | | `csv/x_memberships_top5000.csv.gz` | The same table as gzip CSV | | `original/` | The 3 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,987,624 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 | One end of the link (a node number). SNAP's file lists each undirected link once. | | `dst` | string | The other end. | ### memberships (129,202 rows) Who belongs to which group. | Column | Type | Meaning | |---|---|---| | `user_id` | string | A member node of the community (the node number used in `edges`; the 'user' name is the standard column's). | | `group_id` | string | The community: the 1-based line number of the community in the all-communities file. | ### x_memberships_top5000 (72,959 rows) | Column | Type | Meaning | |---|---|---| | `user_id` | string | A member node of the community. | | `group_id` | string | The community: the 1-based line number in the top-5000 file, which is not the numbering of `memberships`. | ## Quick start Python (pandas): ```python import pandas as pd df = pd.read_parquet("https://echo.directory/download/com-youtube/v1.0.0/data/edges.parquet") ``` DuckDB (reads over HTTP without downloading the file first): ```sql SELECT * FROM 'https://echo.directory/download/com-youtube/v1.0.0/data/edges.parquet' LIMIT 10; ``` R (arrow): ```r df <- arrow::read_parquet("https://echo.directory/download/com-youtube/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. - SNAP lists the network with 1,134,890 nodes and 2,987,624 edges; the file has the same numbers. - SNAP states 8,385 communities, with the groups' connected components of fewer than 3 nodes removed; the all-communities file has 16,386 communities, of which 8,001 have fewer than 3 members. The counts in the data are the ones used here; SNAP's figure may describe a different selection. - Community files hold one community per line, its member nodes separated by whitespace; SNAP's page does not describe this format, which is read here from the files. The all-communities file has 16,386 lines and the top-5000 file 5,000. The top-5000 communities are not marked in `memberships`: they are in `x_memberships_top5000` with their own line numbers. - In 2,987,624 of the 2,987,624 rows the first node number is smaller than the second (never larger). ## Credit - **Jaewon Yang**, creator: authors of the communities and of the SNAP network (Yang and Leskovec, ICDM 2012) - **Jure Leskovec**, creator - **Alan Mislove**, creator: provided the underlying YouTube data (Mislove, Marcon, Gummadi, Druschel and Bhattacharjee, IMC 2007) - **YouTube**, publisher: the video-sharing site the friendship network comes from - **SNAP: Stanford Network Analysis Project (Jure Leskovec)**, distributor (https://snap.stanford.edu/data/) - **ECHO, Syracuse University**, packager (https://echo.directory) ## Licence and terms Not stated; SPDX `NOASSERTION`. See `LICENSE.md` for the upstream terms. The SNAP page for this dataset states no licence or terms of use. ## 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{mislove2007measurement, title = {Measurement and Analysis of Online Social Networks}, author = {Mislove, A. and Marcon, M. and Gummadi, K. P. and Draschler, P. and Bhattacharjee, B.}, booktitle = {IMC}, year = {2007} } @inproceedings{yang2012defining, title = {Defining and Evaluating Network Communities based on Ground-truth}, author = {Yang, Jaewon and Leskovec, Jure}, booktitle = {Proceedings of the IEEE International Conference on Data Mining (ICDM)}, year = {2012} } @inproceedings{mislove2007measurement, title = {Measurement and Analysis of Online Social Networks}, author = {Mislove, Alan and Marcon, Massimiliano and Gummadi, Krishna P. and Druschel, Peter and Bhattacharjee, Bobby}, booktitle = {Proceedings of the 7th ACM SIGCOMM Conference on Internet Measurement (IMC)}, year = {2007} } ``` ## Versions This is version 1.0.0. Every version is kept unchanged at its own address (`https://echo.directory/download/com-youtube/v1.0.0/`); `CHANGELOG.md` lists what changed between versions.