## Internet Mathematics

- Internet Math.
- Volume 6, Number 4 (2010), 489-522.

### A Sequential Importance Sampling Algorithm for Generating Random Graphs with Prescribed Degrees

Joseph Blitzstein and Persi Diaconis

#### Abstract

Random graphs with given degrees are a natural next step in complexity beyond the Erdős–Rényi model, yet the degree constraint greatly complicates simulation and estimation. We use an extension of a combinatorial characterization due to Erdős and Gallai to develop a sequential algorithm for generating a random labeled graph with a given degree sequence. The algorithm is easy to implement and allows for surprisingly efficient sequential importance sampling. The resulting probabilities are easily computed on the fly, allowing the user to reweight estimators appropriately, in contrast to some ad hoc approaches that generate graphs with the desired degrees but with completely unknown probabilities. Applications are given, including simulating an ecological network and estimating the number of graphs with a given degree sequence.

#### Article information

**Source**

Internet Math., Volume 6, Number 4 (2010), 489-522.

**Dates**

First available in Project Euclid: 13 October 2011

**Permanent link to this document**

https://projecteuclid.org/euclid.im/1318514519

**Mathematical Reviews number (MathSciNet)**

MR2809836

**Zentralblatt MATH identifier**

1238.60084

#### Citation

Blitzstein, Joseph; Diaconis, Persi. A Sequential Importance Sampling Algorithm for Generating Random Graphs with Prescribed Degrees. Internet Math. 6 (2010), no. 4, 489--522. https://projecteuclid.org/euclid.im/1318514519