Skip to Main content Skip to Navigation
Conference papers

Unlabelled ordered DAGs and labelled DAGs: constructive enumeration and uniform random sampling

Abstract : Directed Acyclic Graphs (DAGs) are directed graphs in which there is no path from a vertex to itself. DAGs are an omnipresent data structure in computer science and the problem of counting the DAGs of given number of vertices has been solved in the 70's by Robinson. In many applications one needs to construct connected DAGs and to control their number of edges, but the adaptation of Robinson's enumeration to take this into account led to counting formulas based on the inclusion-exclusion principle, inducing a high computational cost for the uniform random sampling of DAGs based on this formula. In the present paper we propose two contributions. First we enumerate a new class of DAGs, enriched with an independent ordering of the children of each vertex, according to their numbers of vertices and edges. We obtain a constructive recursive counting formula for them (i.e. without using the inclusion-exclusion principle) using a new decomposition scheme. Then we show the applicability of our method by proposing a constructive enumeration of Robinson's labelled DAGs, by vertices and edges, based on the same decomposition. As a consequence we are able to derive efficient uniform random samplers for both models.
Complete list of metadata
Contributor : Martin Pépin Connect in order to contact the contributor
Submitted on : Friday, December 4, 2020 - 2:48:29 PM
Last modification on : Tuesday, January 18, 2022 - 2:50:08 PM


Files produced by the author(s)



Antoine Genitrini, Martin Pépin, Alfredo Viola. Unlabelled ordered DAGs and labelled DAGs: constructive enumeration and uniform random sampling. The XI Latin and American Algorithms, Graphs and Optimization Symposium, 2021, Sao Paulo, Brazil. pp.468-477, ⟨10.1016/j.procs.2021.11.057⟩. ⟨hal-03029381v2⟩



Les métriques sont temporairement indisponibles