# YouTube (v2) Friendship Network YouTube is a video-sharing website. This is the friendship network among users (the readme: symmetric, each edge represented once) with the groups users belong to, as distributed by the Data Lab's Social Computing Data Repository (version 2). This copy holds 2,990,443 friendship links among 1,138,499 users and a list of 1,138,499 user numbers. It also holds 47 groups and 50,691 group memberships. ## At a glance - **Platform:** YouTube - **Tables:** edges (2,990,443 rows), nodes (1,138,499 rows), communities (47 rows), memberships (50,691 rows) - **Version:** 1.0.0 - **Licence:** Research use only (no standard licence); SPDX `LicenseRef-Research-Only` - **Original DOI:** 10.1145/1557019.1557109 ## 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/nodes.parquet` | The nodes table (canonical, Parquet) | | `csv/nodes.csv.gz` | The same table as gzip CSV | | `graph/nodes.tsv.gz` | The nodes as a tab-separated file for graph tools | | `data/communities.parquet` | The communities table (canonical, Parquet) | | `csv/communities.csv.gz` | The same table as gzip CSV | | `data/memberships.parquet` | The memberships table (canonical, Parquet) | | `csv/memberships.csv.gz` | The same table as gzip CSV | | `docs/upstream/` | The upstream documentation, verbatim | | `original/` | The 5 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,990,443 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 user of a friendship (a user number; no names or profile data are in the files). | | `dst` | string | The other user. | ### nodes (1,138,499 rows) Nodes of a network, with their attributes. | Column | Type | Meaning | |---|---|---| | `node_id` | string | A user number, from nodes.csv, which the readme calls a dictionary of the users used in the dataset. | ### communities (47 rows) Places where content is posted: subreddits, boards, groups, channels, instances. | Column | Type | Meaning | |---|---|---| | `community_id` | string | A group number (groups.csv); the readme gives no group names. | ### memberships (50,691 rows) Who belongs to which group. | Column | Type | Meaning | |---|---|---| | `user_id` | string | The user who belongs to the group (group-edges.csv, first column). | | `group_id` | string | The group the user belongs to. | ## Quick start Python (pandas): ```python import pandas as pd df = pd.read_parquet("https://echo.directory/download/youtube-v2/v1.0.0/data/edges.parquet") ``` DuckDB (reads over HTTP without downloading the file first): ```sql SELECT * FROM 'https://echo.directory/download/youtube-v2/v1.0.0/data/edges.parquet' LIMIT 10; ``` R (arrow): ```r df <- arrow::read_parquet("https://echo.directory/download/youtube-v2/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 readme states 1,138,499 nodes and 2,990,443 edges; the data have 2,990,443 link rows, 1,138,499 distinct node numbers in links and 1,138,499 rows in nodes.csv, which agree. - 1,138,499 of the 1,138,499 node numbers in links are listed in nodes.csv. - The package declares the network undirected because the readme says the network is symmetric and each edge is represented once. In 2,990,443 of the 2,990,443 rows the first node number is smaller than the second (never larger). - The readme states 47 groups; groups.csv has 47 rows and group-edges.csv memberships refer to 47 distinct groups. - The readme gives no licence or terms, and the files carry no timestamps. ## Credit - **Lei Tang**, creator: named in the readme's Source section - **Huan Liu**, creator - **Social Computing Data Repository (Reza Zafarani and Huan Liu)**, distributor (https://datasets.syr.edu) - **ECHO, Syracuse University**, packager (https://echo.directory) The upstream documentation is preserved verbatim in `docs/upstream/`. ## Licence and terms Research use only (no standard licence); SPDX `LicenseRef-Research-Only`. See `LICENSE.md` for the upstream terms. Shared by the Data Lab Social Computing Data Repository at Syracuse University for non-commercial research use only. Publications should acknowledge the repository. The data was collected from public sources, and the original platforms' terms still apply. ## 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{tang2009relational, title = {{Relational Learning via Latent Social Dimensions}}, author = {Tang, Lei and Liu, Huan}, booktitle = {Proceedings of the 15th ACM SIGKDD Conference on Knowledge Discovery and Data Mining (KDD'09)}, pages = {817--826}, year = {2009}, doi = {10.1145/1557019.1557109} } @misc{DataLabSU, author = {R. Zafarani and H. Liu}, year = {2026}, title = {Social Computing Data Repository}, url = {https://datasets.syr.edu}, institution = {Data Lab, Syracuse University} } @inproceedings{tang2009relational, title = {Relational Learning via Latent Social Dimensions}, author = {Tang, Lei and Liu, Huan}, booktitle = {Proceedings of the 15th ACM SIGKDD Conference on Knowledge Discovery and Data Mining (KDD)}, pages = {817--826}, year = {2009} } @inproceedings{tang2009scalable, title = {Scalable Learning of Collective Behavior based on Sparse Social Dimensions}, author = {Tang, Lei and Liu, Huan}, booktitle = {Proceedings of the 18th ACM Conference on Information and Knowledge Management (CIKM)}, year = {2009} } ``` ## Versions This is version 1.0.0. Every version is kept unchanged at its own address (`https://echo.directory/download/youtube-v2/v1.0.0/`); `CHANGELOG.md` lists what changed between versions.