Uniform Generation of Temporal Graphs with Given Degrees

04/19/2023
by   Daniel Allendorf, et al.
0

Uniform sampling from the set 𝒢(𝐝) of graphs with a given degree-sequence 𝐝 = (d_1, …, d_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 𝐃 = (𝐝, T) ∈ℕ^n ×ℕ_>0 and the task is to output a uniform random sample from the set 𝒢(𝐃) of temporal graphs with degree-sequence 𝐝 and timestamps in the interval [1, T]. By allowing repeated edges with distinct timestamps, 𝒢(𝐃) can be non-empty even if 𝒢(𝐝) 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) if Δ^2+ϵ = O(M) for some constant ϵ > 0 and T - Δ = Ω(T) where M = ∑_i d_i and Δ = max_i d_i. Our algorithm applies the switching method of McKay and Wormald [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.

READ FULL TEXT

Please sign up or login with your details

Forgot password? Click here to reset