English

Uniform Generation of Temporal Graphs with Given Degrees

Data Structures and Algorithms 2023-10-11 v2 Combinatorics

Abstract

Uniform sampling from the set G(d)\mathcal{G}(\mathbf{d}) of graphs with a given degree-sequence d=(d1,,dn)Nn\mathbf{d} = (d_1, \dots, d_n) \in \mathbb N^n is a classical problem in the study of random graphs. We consider an analogue for temporal graphs in which the edges are labeled with integer timestamps. The input to this generation problem is a tuple D=(d,T)Nn×N>0\mathbf{D} = (\mathbf{d}, T) \in \mathbb N^n \times \mathbb N_{>0} and the task is to output a uniform random sample from the set G(D)\mathcal{G}(\mathbf{D}) of temporal graphs with degree-sequence d\mathbf{d} and timestamps in the interval [1,T][1, T]. By allowing repeated edges with distinct timestamps, G(D)\mathcal{G}(\mathbf{D}) can be non-empty even if G(d)\mathcal{G}(\mathbf{d}) is, and as a consequence, existing algorithms are difficult to apply. We describe an algorithm for this generation problem which runs in expected time O(M)O(M) if Δ2+ϵ=O(M)\Delta^{2+\epsilon} = O(M) for some constant ϵ>0\epsilon > 0 and TΔ=Ω(T)T - \Delta = \Omega(T) where M=idiM = \sum_i d_i and Δ=maxidi\Delta = \max_i d_i. Our algorithm applies the switching method of McKay and Wormald [1][1] to temporal graphs: we first generate a random temporal multigraph and then remove self-loops and duplicated edges with switching operations which rewire the edges in a degree-preserving manner.

Keywords

Cite

@article{arxiv.2304.09654,
  title  = {Uniform Generation of Temporal Graphs with Given Degrees},
  author = {Daniel Allendorf},
  journal= {arXiv preprint arXiv:2304.09654},
  year   = {2023}
}
R2 v1 2026-06-28T10:11:01.655Z