Connectedness matters: Construction and exact random sampling of connected graphs

Szabolcs Horvát, Carl D. Modes
9/8/2020
physics.soc-phcs.DMmath.CO

Official code: szhorvat/ConnectedGraphSampler (4 stars, Mathematica, MIT, last commit 2020-11-11).

Abstract

We describe a new method for the random sampling of connected networks with a specified degree sequence. We consider both the case of simple graphs and that of loopless multigraphs.

Show full abstract

The constraints of fixed degrees and of connectedness are two of the most commonly needed ones when constructing null models for the practical analysis of physical or biological networks. Yet handling these constraints, let alone combining them, is non-trivial. Our method builds on a recently introduced novel sampling approach that constructs graphs with given degrees independently (unlike edge-switching Markov Chain Monte Carlo methods) and efficiently (unlike the configuration model), and extends it to incorporate the constraint of connectedness. Additionally, we present a simple and elegant algorithm for directly constructing a single connected realization of a degree sequence, either as a simple graph or a multigraph. Finally, we demonstrate our sampling method on a realistic scale-free example, as well as on degree sequences of connected real-world networks, and show that enforcing connectedness can significantly alter the properties of sampled networks.

View on arXivView PDF

Code Implementations(1)

MIT

Importance sampling for connected graphs with given degrees

41Mathematica, C++Aug 24, 20206 years agoMIT

Similar Papers

Cite this paper

@article{horvt2020connectedness,
  title  = {Connectedness matters: Construction and exact random sampling of connected graphs},
  author = {Szabolcs Horvát and Carl D. Modes},
  year   = {2020},
  eprint = {2009.03747},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2009.03747}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2009.03747.svg)](https://codeofpaper.com/paper/2009.03747)

Discussion