Papers › GraphRNN: Generating Realistic Graphs with Deep Auto-regressive Models

GraphRNN: Generating Realistic Graphs with Deep Auto-regressive Models

24 Feb 2018ICML 2018 7arXiv:1802.08773archive 2025-07-28

Jiaxuan You, Rex Ying, Xiang Ren, William L. Hamilton, Jure Leskovec

Modeling and generating graphs is fundamental for studying networks in biology, engineering, and social sciences. However, modeling complex distributions over graphs and then efficiently sampling from these distributions is challenging due to the non-unique, high-dimensional nature of graphs and the complex, non-local dependencies that exist between edges in a given graph. Here we propose GraphRNN, a deep autoregressive model that addresses the above challenges and approximates any distribution of graphs with minimal assumptions about their structure. GraphRNN learns to generate graphs by training on a representative set of graphs and decomposes the graph generation process into a sequence of node and edge formations, conditioned on the graph structure generated so far. In order to quantitatively evaluate the performance of GraphRNN, we introduce a benchmark suite of datasets, baselines and novel evaluation metrics based on Maximum Mean Discrepancy, which measure distances between sets of graphs. Our experiments show that GraphRNN significantly outperforms all baselines, learning to generate diverse graphs that match the structural characteristics of a target set, while also scaling to graphs 50 times larger than previous deep models.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="1802.08773")

Code

Syntology Ran 1 of 19 code samples harvested from 1 repository linked to this paper; 18 have no recorded run. Of those that ran: 1 ran · honoured contract.

By repository: official repository: 19 samples from 1 repository, 1 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

snap-stanford/GraphRNN officialmentioned on GitHubpytorchMIT report
JiaxuanYou/graph-generation mentioned on GitHubpytorchMIT report
mark-koch/graph-rnn mentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

19 samples harvested; 1 ran; 1 honoured the contract we drafted; 18 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · honoured contract
18unverified

Licence: 0 of the 19 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from snap-stanford/GraphRNN. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

parse_index_file snap-stanford/GraphRNN/data.py official repository ran · honoured contract MIT (permissive) · 5c3fa9402a9405bc · report
Graph_generator_baseline snap-stanford/GraphRNN/baselines/baseline_simple.py official repository unverified MIT (permissive) · b919a065e6ff5ab5 · report
Graph_generator_baseline_train_rulebased snap-stanford/GraphRNN/baselines/baseline_simple.py official repository unverified MIT (permissive) · 60c01e040605bf2d · report
Graph_load snap-stanford/GraphRNN/data.py official repository unverified MIT (permissive) · 29a4794f08fa2a32 · report
Graph_load_batch snap-stanford/GraphRNN/data.py official repository unverified MIT (permissive) · 40a42cd12145989b · report
binary_cross_entropy_weight snap-stanford/GraphRNN/model.py official repository unverified MIT (permissive) · b59409263831240e · report
caveman_special snap-stanford/GraphRNN/utils.py official repository unverified MIT (permissive) · ad16299d7054b46e · report
create snap-stanford/GraphRNN/create_graphs.py official repository unverified MIT (permissive) · 72a0035803c73117 · report
disjoint_cliques_test_graph snap-stanford/GraphRNN/baselines/mmsb.py official repository unverified MIT (permissive) · 56606455e061b557 · report
extract_result_id_and_epoch snap-stanford/GraphRNN/evaluate.py official repository unverified MIT (permissive) · 994f652e081e1e2f · report
find_nearest_idx snap-stanford/GraphRNN/evaluate.py official repository unverified MIT (permissive) · a39feeeaa3cceac3 · report
find_nearest_idx snap-stanford/GraphRNN/analysis.py official repository unverified MIT (permissive) · 4c7a3523d6683b3a · report
graph_gen_from_blockmodel snap-stanford/GraphRNN/baselines/mmsb.py official repository unverified MIT (permissive) · e33bc4d6f9298826 · report
gumbel_softmax snap-stanford/GraphRNN/model.py official repository unverified MIT (permissive) · 7c1c7cc69fad8a40 · report
n_community snap-stanford/GraphRNN/utils.py official repository unverified MIT (permissive) · 19bff1c9b578d1ae · report
perturb snap-stanford/GraphRNN/utils.py official repository unverified MIT (permissive) · 8f7d2c1aa425efe6 · report
sample_tensor snap-stanford/GraphRNN/model.py official repository unverified MIT (permissive) · 81dc19acb93da0ce · report
test_DGMG_epoch snap-stanford/GraphRNN/main_DeepGMG.py official repository unverified MIT (permissive) · 0702999f51d7158b · report
train_DGMG_forward_epoch snap-stanford/GraphRNN/main_DeepGMG.py official repository unverified MIT (permissive) · 0ec01a80015ba81c · report

Tasks

Graph Generation

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections