# TwitterFollowGraph: Temporal User-Author Follow Graph

## Facts

- Provider: Twitter Cortex (El-Kishky et al.)
- License: CC-BY-4.0 (https://huggingface.co/datasets/Twitter/TwitterFollowGraph)
- Size: 3 files
- Stored at: Hugging Face, https://huggingface.co/datasets/Twitter/TwitterFollowGraph
- Access: public, readable without an account
- Category: Machine Learning & AI
- Source: https://arxiv.org/abs/2205.06205
- Page: https://scigantic.com/archive/2376c7a5-17cc-5590-bc17-32b6d9f0b234
- Keywords: Machine Learning & AI, graph learning, Hugging Face

## About

A large anonymised bipartite graph of Twitter follow engagements released by Twitter with the paper kNN-Embed: Locally Smoothed Embedding Mixtures for Multi-interest Candidate Retrieval. Consumer (user) nodes link to producer (author) nodes, and each directed edge records a user following an author. Edges are binned into contiguous time chunks denoted by ordinals that respect time order, so the graph supports temporal train and test splits. The file is a single CSV with three columns, user_index, author_index and time_chunk, distributed as TwitterFollowGraph.csv.zip (about 2.3 GB compressed, measured 2026-11-14); the repository uses about 12.6 GB. Uses include candidate retrieval and recommendation, link prediction, multi-interest user embedding, bipartite graph representation learning and benchmarking scalable embedding methods on a real social graph. Unzip and read with pandas, polars or DuckDB, then build sparse matrices with scipy or graphs with PyTorch Geometric or DGL. Released under CC BY 4.0; cite El-Kishky et al. (2022).

## Load the data

```python
from huggingface_hub import hf_hub_download
path = hf_hub_download(repo_id="Twitter/TwitterFollowGraph", filename="TwitterFollowGraph.csv.zip", repo_type="dataset")
print(path)
```

## Data structure

Example file: `TwitterFollowGraph.csv.zip`

## Open it

- In a hosted notebook with the data mounted: https://scigantic.com/archive/2376c7a5-17cc-5590-bc17-32b6d9f0b234
- Full record as JSON (schema card included): https://api.scigantic.com/api/archives/2376c7a5-17cc-5590-bc17-32b6d9f0b234
- Over MCP: `get_schema_card` with id `2376c7a5-17cc-5590-bc17-32b6d9f0b234` at https://api.scigantic.com/mcp

## Related topics

- [Machine Learning & AI datasets](https://scigantic.com/topics/machine-learning-and-ai)
- [Graph learning datasets](https://scigantic.com/topics/graph-learning)
