The switch Markov chain for sampling irregular graphs and digraphs

The problem of efficiently sampling from a set of (undirected, or directed) graphs with a given degree sequence has many applications. One approach to this problem uses a simple Markov chain, which we call the switch chain, to perform the sampling. The switch chain is known to be rapidly mixing for regular degree sequences, both in the undirected and directed setting. We prove that the switch chain for undirected graphs is rapidly mixing for any degree sequence with minimum degree at least 1 and with maximum degree $d_{\max}$ which satisfies $3\leq d_{\max}\leq \frac{1}{3}\, \sqrt{M}$, where $M$ is the sum of the degrees. The mixing time bound obtained is only a factor $n$ larger than that established in the regular case, where $n$ is the number of vertices. Our result covers a wide range of degree sequences, including power-law graphs with parameter $\gamma > 5/2$ and sufficiently many edges. For directed degree sequences such that the switch chain is irreducible, we prove that the switch chain is rapidly mixing when all in-degrees and out-degrees are positive and bounded above by $\frac{1}{4}\, \sqrt{m}$, where $m$ is the number of arcs, and not all in-degrees and out-degrees equal 1. The mixing time bound obtained in the directed case is an order of $m^2$ larger than that established in the regular case.

[1]  Matthias Müller-Hannemann,et al.  Uniform Sampling of Digraphs with a Fixed Degree Sequence , 2010, WG.

[2]  A. Rao,et al.  A Markov chain Monte carol method for generating random (0, 1)-matrices with given marginals , 1996 .

[3]  Brendan D. McKay,et al.  Asymptotic enumeration by degree sequence of graphs with degreeso(n1/2) , 1991, Comb..

[4]  Brendan D. McKay,et al.  Subgraphs of Dense Random Graphs with Specified Degrees , 2010, Combinatorics, Probability and Computing.

[5]  James Y. Zhao Expand and Contract: Sampling graphs with given degrees and other combinatorial families , 2013, ArXiv.

[6]  Nicholas Wormald,et al.  Enumeration of graphs with a heavy-tailed degree sequence , 2014, 1404.1250.

[7]  Michael Drew Lamar Algorithms for realizing degree sequences of directed graphs , 2009, ArXiv.

[8]  Catherine S. Greenhill A Polynomial Bound on the Mixing Time of a Markov Chain for Sampling Regular Directed Graphs , 2011, Electron. J. Comb..

[9]  Eric Vigoda,et al.  A polynomial-time approximation algorithm for the permanent of a matrix with non-negative entries , 2001, STOC '01.

[10]  István Miklós,et al.  Approximate Counting of Graphical Realizations , 2015, PloS one.

[11]  P. Diaconis,et al.  Algebraic algorithms for sampling from conditional distributions , 1998 .

[12]  Martin E. Dyer,et al.  Sampling regular graphs and a peer-to-peer network , 2005, SODA '05.

[13]  Michael Drew Lamar,et al.  Directed 3-cycle anchored digraphs and their application in the uniform sampling of realizations from a fixed degree sequence , 2011, Proceedings of the 2011 Winter Simulation Conference (WSC).

[14]  Mark Jerrum,et al.  Fast Uniform Generation of Regular Graphs , 1990, Theor. Comput. Sci..

[15]  Zoltán Toroczkai,et al.  A Decomposition Based Proof for Fast Mixing of a Markov Chain over Balanced Realizations of a Joint Degree Matrix , 2015, SIAM J. Discret. Math..

[16]  J. Besag,et al.  Generalized Monte Carlo significance tests , 1989 .

[17]  Amin Saberi,et al.  A Sequential Algorithm for Generating Random Graphs , 2007, APPROX-RANDOM.

[18]  Michael Drew Lamar On uniform sampling simple directed graph realizations of degree sequences , 2009, ArXiv.

[19]  J. Petersen Die Theorie der regulären graphs , 1891 .

[20]  Brendan D. McKay,et al.  Uniform Generation of Random Regular Graphs of Moderate Degree , 1990, J. Algorithms.

[21]  Béla Bollobás,et al.  A Probabilistic Proof of an Asymptotic Formula for the Number of Labelled Regular Graphs , 1980, Eur. J. Comb..

[22]  A. Sinclair Improved Bounds for Mixing Rates of Markov Chains and Multicommodity Flow , 1992, Combinatorics, Probability and Computing.

[23]  Gregory Gutin,et al.  Digraphs - theory, algorithms and applications , 2002 .

[24]  Nicholas C. Wormald,et al.  Generating Random Regular Graphs Quickly , 1999, Combinatorics, Probability and Computing.

[25]  Brendan D. McKay,et al.  Random dense bipartite graphs and directed graphs with specified degrees , 2009 .

[26]  F. Jotzo,et al.  Double counting and the Paris Agreement rulebook , 2019, Science.

[27]  Van H. Vu,et al.  Generating Random Regular Graphs , 2003, STOC '03.

[28]  W. T. Tutte A Short Proof of the Factor Theorem for Finite Graphs , 1954, Canadian Journal of Mathematics.

[29]  R. Taylor Contrained switchings in graphs , 1981 .

[30]  M. Jerrum Counting, Sampling and Integrating: Algorithms and Complexity , 2003 .

[31]  Regina Tyshkevich,et al.  Decomposition of graphical sequences and unigraphs , 2000, Discret. Math..

[32]  Pu Gao,et al.  Uniform Generation of Random Regular Graphs , 2015, FOCS.

[33]  Zoltán Toroczkai,et al.  New Classes of Degree Sequences with Fast Mixing Swap Markov Chain Sampling , 2016, Combinatorics, Probability and Computing.

[34]  Eric Vigoda,et al.  A polynomial-time approximation algorithm for the permanent of a matrix with nonnegative entries , 2004, JACM.

[35]  Alexander I. Barvinok,et al.  The number of graphs and a random graph with a given degree sequence , 2010, Random Struct. Algorithms.

[36]  Catherine S. Greenhill The switch Markov chain for sampling irregular graphs (Extended Abstract) , 2014, SODA.

[37]  István Miklós,et al.  Towards Random Uniform Sampling of Bipartite Graphs with given Degree Sequence , 2010, Electron. J. Comb..

[38]  H. Ryser Combinatorial Properties of Matrices of Zeros and Ones , 1957, Canadian Journal of Mathematics.

[39]  Prasad Tetali,et al.  Simple Markov-chain algorithms for generating bipartite graphs and tournaments , 1997, SODA '97.

[40]  Martin Dyer,et al.  Corrigendum: Sampling regular graphs and a peer-to-peer network , 2012 .