Skip to main content
QUICK REVIEW

[Paper Review] Uniform sampling of undirected and directed graphs with a fixed degree sequence

Annabell Berger, Matthias Müller‐Hannemann|arXiv (Cornell University)|Dec 3, 2009
Graph theory and applicationsMathematics24 references8 citations
TL;DR

This paper presents a Markov chain-based method for uniform sampling of undirected and directed graphs with a fixed degree sequence, addressing the failure of standard switching algorithms in the directed case due to disconnected state graphs. The key contribution is a characterization of 'arc swap sequences'—degree sequences for which the state graph is strongly connected—along with two solutions for general sequences: reorienting 3-cycles or sampling within isomorphic components, enabling uniform sampling even when switching alone fails.

ABSTRACT

Many applications in network analysis require algorithms to sample uniformly at random from the set of all graphs with a prescribed degree sequence. We present a Markov chain based approach which converges to the uniform distribution of all realizations for both the directed and undirected case. It remains an open challenge whether these Markov chains are rapidly mixing. For the case of directed graphs, we also explain in this paper that a popular switching algorithm fails in general to sample uniformly at random because the state graph of the Markov chain decomposes into different isomorphic components. We call degree sequences for which the state graph is strongly connected arc swap sequences. To handle arbitrary degree sequences, we develop two different solutions. The first uses an additional operation (a reorientation of induced directed 3-cycles) which makes the state graph strongly connected, the second selects randomly one of the isomorphic components and samples inside it. Our main contribution is a precise characterization of arc swap sequences, leading to an efficient recognition algorithm. Finally, we point out some interesting consequences for network analysis.

Motivation & Objective

  • To enable uniform random sampling of graphs with a prescribed degree sequence, a critical need in network analysis for motif and structural property comparison.
  • To address the failure of standard switching algorithms in directed graphs, which can get trapped in disconnected components of the state graph.
  • To characterize degree sequences for which the switching-based Markov chain is strongly connected (called 'arc swap sequences'), ensuring uniform sampling is theoretically possible.
  • To provide practical solutions for sampling uniformly from all realizations when the degree sequence is not an arc swap sequence, using 3-cycle reorientation or component-wise sampling.
  • To correct biases in arc presence probabilities that arise when using standard switching algorithms on labeled directed graphs.

Proposed method

  • Uses a Markov chain whose states are all realizations of a given degree sequence, with transitions defined by valid 2-swaps (edge or arc swaps) in the undirected and directed cases, respectively.
  • Introduces a new operation—reorienting induced directed 3-cycles—to connect disconnected components of the state graph in non-arc-swap sequences.
  • Applies a component-wise sampling strategy by selecting one isomorphic component uniformly at random and sampling within it.
  • Employs a symmetric difference argument and alternating cycle detection to prove strong connectivity within each component of the state graph.
  • Develops an efficient recognition algorithm for arc swap sequences based on the structural properties of induced 3-cycles in realizations.
  • Uses the fact that induced 3-cycles are vertex-disjoint and can be independently reoriented to decompose the state graph into isomorphic components.

Experimental results

Research questions

  • RQ1Why does the standard switching algorithm fail to sample uniformly from directed graphs with a fixed degree sequence?
  • RQ2What structural properties of a degree sequence determine whether the state graph of the switching Markov chain is strongly connected?
  • RQ3Can we characterize the class of degree sequences for which uniform sampling via switching is possible, and how can we efficiently recognize them?
  • RQ4How can we modify the switching process to achieve uniform sampling when the state graph is disconnected?
  • RQ5What are the implications of component-wise sampling or 3-cycle reorientation for correcting arc presence probability biases in labeled directed graphs?

Key findings

  • The switching algorithm fails to achieve uniform sampling in the directed case when the state graph is disconnected, as demonstrated by a family of directed graphs with n induced 3-cycles that form 2^{n/3} isolated components.
  • A degree sequence is an 'arc swap sequence' if and only if the state graph of the switching Markov chain is strongly connected, and such sequences can be recognized efficiently.
  • For non-arc-swap sequences, the state graph decomposes into at most 2^{⌊|V|/3⌋} isomorphic components, each corresponding to a fixed orientation of induced 3-cycles.
  • The number of such components is exactly 2^k, where k is the number of vertex-disjoint induced 3-cycles in any realization.
  • The proposed solutions—3-cycle reorientation or component-wise sampling—ensure uniform sampling over all realizations even when switching alone is insufficient.
  • In labeled directed graphs, standard switching introduces bias: arcs in induced 3-cycles appear with probability 1 or 0, while the true uniform probability is 1/2, which can be corrected using the component-based approach.

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.