Dataset Viewer
Auto-converted to Parquet Duplicate
name
string
domain
string
description
string
num_tables
int64
num_rows
int64
num_tasks
int64
tasks_link_prediction
int64
tasks_multilabel_classification
int64
size_gb
float64
val_timestamp
string
test_timestamp
string
license
string
source_url
string
tgbl-coin
Cryptocurrency transactions
TGB `tgbl-coin`: a cryptocurrency transaction network where nodes are addresses and edges are token transfers over time. Dynamic link-property prediction from the Temporal Graph Benchmark.
2
23,447,972
1
1
0
2.1172
2022-09-02 05:24:09+00:00
2022-09-29 20:11:59+00:00
see TGB / original sources
https://tgb.complexdatalab.com/
tgbl-comment
Social (Reddit replies)
TGB `tgbl-comment`: a directed Reddit reply network where users reply to one another's comments over 2.6 years. Dynamic link-property prediction from the Temporal Graph Benchmark.
2
45,309,297
1
1
0
4.3906
2010-08-27 00:34:45+00:00
2010-11-04 02:45:25+00:00
see TGB / original sources
https://tgb.complexdatalab.com/
tgbl-flight
Air transport network
TGB `tgbl-flight`: a global air-traffic network where airports are connected by flights over time (2019-2022). Dynamic link-property prediction from the Temporal Graph Benchmark.
2
67,187,713
1
1
0
3.0877
2021-11-29 05:00:00+00:00
2022-05-29 04:00:00+00:00
see TGB / original sources
https://tgb.complexdatalab.com/
tgbl-review
E-commerce reviews
TGB `tgbl-review`: an Amazon product-review network (2008-2018) where users review products in the electronics category; a bipartite, weighted, dynamic link-property-prediction dataset from the Temporal Graph Benchmark.
2
5,226,177
1
1
0
1.363
2016-06-03 00:00:00+00:00
2017-03-07 00:00:00+00:00
see TGB / original sources
https://tgb.complexdatalab.com/
tgbl-review-v2
E-commerce reviews
TGB `tgbl-review-v2`: revised version of `tgbl-review`, an Amazon electronics user-product review network. Dynamic link-property prediction from the Temporal Graph Benchmark.
2
5,226,177
1
1
0
1.363
2016-06-03 00:00:00+00:00
2017-03-07 00:00:00+00:00
see TGB / original sources
https://tgb.complexdatalab.com/
tgbl-wiki
Wikipedia edits
TGB `tgbl-wiki`: a bipartite interaction network of edits between Wikipedia editors and pages over one month. A dynamic link-property-prediction dataset from the Temporal Graph Benchmark.
3
166,701
1
1
0
0.3863
1970-01-22 13:24:13+00:00
1970-01-26 16:11:40+00:00
see TGB / original sources
https://tgb.complexdatalab.com/
tgbl-wiki-v2
Wikipedia edits
TGB `tgbl-wiki-v2`: revised version of `tgbl-wiki`, a bipartite editor-page edit interaction network from Wikipedia. Dynamic link-property prediction from the Temporal Graph Benchmark.
3
166,701
1
1
0
0.3863
1970-01-22 13:24:13+00:00
1970-01-26 16:11:40+00:00
see TGB / original sources
https://tgb.complexdatalab.com/
tgbn-trade
International trade
TGB `tgbn-trade`: an international agriculture-trade network (1986-2016) where nodes are nations and yearly edges are trade volumes; a dynamic node-property-prediction (node affinity) dataset from the Temporal Graph Benchmark.
5
934,072
1
0
1
0.0097
2010-01-01 00:00:00+00:00
2014-01-01 00:00:00+00:00
see TGB / original sources
https://tgb.complexdatalab.com/
thgl-forum
Online forum interactions
TGB `thgl-forum`: a temporal heterogeneous Reddit forum network with users and subreddits as distinct node types and multiple interaction edge types. Heterogeneous dynamic link prediction from the Temporal Graph Benchmark.
4
23,910,523
2
2
0
6.7498
2014-01-22 21:36:03+00:00
2014-01-27 15:59:18+00:00
see TGB / original sources
https://tgb.complexdatalab.com/
thgl-github
GitHub interactions
TGB `thgl-github`: a large temporal heterogeneous GitHub interaction network with multiple node and edge types. Heterogeneous dynamic link prediction from the Temporal Graph Benchmark.
18
23,356,342
14
14
0
1.9665
2024-03-22 02:53:07+00:00
2024-03-26 19:54:34+00:00
see TGB / original sources
https://tgb.complexdatalab.com/
thgl-myket
App store (Myket)
TGB `thgl-myket`: a temporal heterogeneous network of user-app interactions from the Myket Android app market, with multiple node and edge types. Heterogeneous dynamic link prediction from the Temporal Graph Benchmark.
4
55,163,623
2
2
0
5.2129
2020-10-26 15:07:40+00:00
2020-11-25 21:55:12+00:00
see TGB / original sources
https://tgb.complexdatalab.com/
thgl-software
Software interaction network
TGB `thgl-software`: a temporal heterogeneous GitHub interaction network around open-source software repositories, with multiple node and edge types. Heterogeneous dynamic link prediction from the Temporal Graph Benchmark.
18
2,171,733
14
14
0
3.6875
2024-01-23 09:58:00+00:00
2024-01-27 00:34:29+00:00
see TGB / original sources
https://tgb.complexdatalab.com/

TGB datasets in RelBench format

This repository hosts the Temporal Graph Benchmark (TGB) datasets exported to the RelBench manifest format. Each dataset lives in its own subdirectory with a self-describing manifest.yaml, plain-parquet tables under db/, per-task labels under tasks/<task>/, and a rendered schema.svg. Every task here is kind: external: the labels, splits, and official negative samples are produced by TGB and served as-is.

Load any dataset by its subdirectory path:

import relbench
ds = relbench.load_dataset("relbench/tgb", revision="<pin>")  # via the registry, or:
# point directly at a subdir you have locally / downloaded
task = relbench.load_task("<dataset>", "<task>")

Datasets

Dynamic link property prediction (tgbl-*)

Bipartite or monopartite temporal interaction networks. Task src-dst-mrr: predict the next destination for a source, ranked against TGB's official negative samples (one-vs-many MRR / Hits@k). Official val/test negatives ship under each dataset's negatives/ directory.

dataset domain
tgbl-wiki, tgbl-wiki-v2 Wikipedia editor-page edits
tgbl-review, tgbl-review-v2 Amazon electronics user-product reviews
tgbl-coin cryptocurrency address transactions
tgbl-comment Reddit reply network
tgbl-flight global airport-flight network

Heterogeneous dynamic link prediction (thgl-*)

Temporal heterogeneous graphs with multiple node types (nodes_type_*) and edge types (events_edge_type_*). One task per edge type (edge-type-<k>-mrr), evaluated against official negatives. Global-to-local id mappings/ and negatives/ ship with each dataset (required for the TGB evaluation protocol).

dataset domain
thgl-software GitHub open-source software interactions
thgl-forum Reddit forum (users + subreddits)
thgl-github GitHub interactions (large)
thgl-myket Myket Android app market interactions

Dynamic node property prediction (tgbn-*)

Node-affinity prediction over time. Task node-label-ndcg: predict the per-node label distribution at the next timestamp, evaluated by NDCG@10. Labels are carried in the labels / label_events / label_event_items tables.

dataset domain
tgbn-trade UN international agriculture trade

Notes on evaluation

The RelBench manifest records evaluator: tgb on each task. TGB uses a custom protocol (one-vs-many MRR / Hits@k for link tasks, NDCG@10 for node tasks) that differs from RelBench's default link/classification metrics. The official negative samples and id mappings needed to reproduce the TGB numbers are shipped alongside the data.

Citation

If you use these datasets, please cite the TGB papers (Huang et al., 2023; THGB extensions) and follow the licensing of each original data source. See https://tgb.complexdatalab.com/.

Downloads last month
629

Paper for relbench/tgb