错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Uniform Generation of Temporal Graphs with Given Degrees

  • Daniel Allendorf

摘要

Uniform sampling from the set \(\mathcal {G}(\textbf{d})\) of graphs with a given degree-sequence \(\textbf{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 \(\textbf{D} = (\textbf{d}, T) \in \mathbb N^n \times \mathbb N_{>0}\) and the task is to output a uniform random sample from the set \(\mathcal {G}(\textbf{D})\) of temporal graphs with degree-sequence \(\textbf{d}\) and timestamps in the interval [1, T]. By allowing repeated edges with distinct timestamps, \(\mathcal {G}(\textbf{D})\) can be non-empty even if \(\mathcal {G}(\textbf{d})\) is, and as a consequence, existing algorithms are difficult to apply. We describe an algorithm for this generation problem which runs in expected linear time O(M) if \(\varDelta ^{2+\epsilon } = O(M)\) for some constant \(\epsilon > 0\) and \(T - \varDelta = \varOmega (T)\) where \(M = \sum _i d_i\) and \(\varDelta = \max _i d_i\) . Our algorithm applies the switching method of McKay and Wormald [16] 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.