Skip to main content
QUICK REVIEW

[Paper Review] Fast generation of random connected graphs with prescribed degrees

Fabien Viger, Matthieu Latapy|arXiv (Cornell University)|Feb 22, 2005
Limits and Structures in Graph TheoryMathematics26 references19 citations
TL;DR

This paper presents an efficient $O(n\log n)$ algorithm for generating random simple connected graphs with a prescribed degree sequence, significantly improving upon prior methods. By optimizing edge-swapping heuristics and exploiting heavy-tailed degree distributions, it achieves near-optimal performance and enables the generation of massive graphs (e.g., $10^6$ vertices in under 30 seconds), outperforming existing approaches in both speed and simplicity of implementation.

ABSTRACT

We address here the problem of generating random graphs uniformly from the set of simple connected graphs having a prescribed degree sequence. Our goal is to provide an algorithm designed for practical use both because of its ability to generate very large graphs (efficiency) and because it is easy to implement (simplicity). We focus on a family of heuristics for which we prove optimality conditions, and show how this optimality can be reached in practice. We then propose a different approach, specifically designed for typical real-world degree distributions, which outperforms the first one. Assuming a conjecture which we state and argue rigorously, we finally obtain an log-linear algorithm, which, in spite of being very simple, improves the best known complexity.

Motivation & Objective

  • To address the challenge of generating uniformly random, simple, and connected graphs with a given degree sequence, especially for large-scale simulations.
  • To improve upon existing Markov chain Monte Carlo (MCMC) methods by optimizing edge-swapping heuristics for better performance and convergence.
  • To design a practical, simple-to-implement algorithm that scales efficiently to massive graphs (e.g., $>10^6$ vertices).
  • To explore theoretical improvements toward $O(n\log\log n)$ complexity using properties of heavy-tailed networks.

Proposed method

  • Uses a Markov chain Monte Carlo (MCMC) framework with edge swaps to explore the space of connected, simple graphs with a fixed degree sequence.
  • Employs a three-step process: (1) realize the degree sequence via Havel-Hakimi, (2) connect components via edge swaps, and (3) shuffle edges to achieve uniform randomness.
  • Introduces dynamic heuristics to balance the cost of connectivity checks and swap success rates by adjusting isolation test width $K$ and window $T$.
  • Applies optimized breadth-first or depth-first isolation tests that stop early when encountering high-degree vertices, reducing average complexity.
  • Leverages the heavy-tailed nature of real-world degree distributions to reduce isolation test time from $O(\log n)$ to $O(\log\log n)$ under a conjecture.
  • Employs a log-linear algorithm structure where isolation tests are performed at exponentially increasing widths, reducing total cost to $O(m\log n)$.

Experimental results

Research questions

  • RQ1Can edge-swapping heuristics in MCMC-based graph generation be optimized to reduce time complexity while maintaining uniformity?
  • RQ2What is the optimal balance between connectivity check cost and swap success rate in the MCMC process?
  • RQ3Can the complexity of isolation tests be reduced by exploiting the structural properties of real-world networks?
  • RQ4Is it possible to achieve $O(n\log n)$ time complexity for generating connected graphs with prescribed degree sequences?
  • RQ5Can the $O(n\log\log n)$ complexity be achieved under a plausible conjecture about disconnection probabilities in heavy-tailed networks?

Key findings

  • The proposed algorithm achieves $O(n\log n)$ time complexity, significantly improving upon prior methods for large-scale graph generation.
  • For a graph of size $10^6$ with a heavy-tailed degree distribution, the algorithm generates such graphs in approximately 25.9 seconds, compared to weeks with previous heuristics.
  • The final algorithm outperforms the Gkantsidis et al. heuristics by a factor of over 1000 on $10^6$-vertex graphs.
  • Empirical results confirm that $O(m)$ edge swaps are sufficient for convergence to uniform randomness, supporting the assumption of $O(m)$ transitions.
  • Under a conjecture on exponential decay of disconnection probability, the algorithm’s complexity could be further reduced to $O(n\log\log n)$.
  • The space complexity remains $O(m)$, making memory the current bottleneck for graphs with $>10^7$ vertices.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.