English

Boltzmann sampling and optimal exact-size sampling for directed acyclic graphs

Data Structures and Algorithms 2026-02-10 v1 Discrete Mathematics Combinatorics

Abstract

We propose two efficient algorithms for generating uniform random directed acyclic graphs, including an asymptotically optimal exact-size sampler that performs n22+o(n2)\frac{n^2}{2} + o(n^2) operations and requests to a random generator. This was achieved by extending the Boltzmann model for graphical generating functions and by using various decompositions of directed acyclic graphs. The presented samplers improve upon the state-of-the-art algorithms in terms of theoretical complexity and offer a significant speed-up in practice.

Cite

@article{arxiv.2602.08471,
  title  = {Boltzmann sampling and optimal exact-size sampling for directed acyclic graphs},
  author = {Wojciech Gabryelski and Zbigniew Gołȩbiewski and Martin Pépin},
  journal= {arXiv preprint arXiv:2602.08471},
  year   = {2026}
}
R2 v1 2026-07-01T10:27:37.247Z