Indexed metadata

Counting and Sampling Git Graphs

Julien Courtiel, Martin Pépin

Source record

Source: arXiv

Published: Oct 27, 2026

arXiv: 2610.37208

Open original source ↗

Source abstract

Version Control Systems, like Git and Mercurial, represent the history of a project as a Directed Acyclic Graph, capturing divergences and merges throughout development. A widely adopted workflow, the feature branch workflow, imposes a particularly simple structure: a single main branch and features branches evolving in parallel without interfering with one another. This work presents an enumerative study of these Git graphs. We first establish a bijection between Git graphs and a simpler combinatorial class, which we term cyclariums, and derive their exact count at size n, namely ∑_k=2n∑_f=1k−1[kf](n−k−1k−f−1) \sum\_{k=2}^n \sum\_{f = 1}^{k-1} {k \brack f} { n - k - 1 \choose k - f - 1} . Using a saddle-point method, we further show that this number is asymptotically equivalent to e1/82(n2e)n2exp⁡(12ln⁡n2n2+2n+(ln⁡n2)232)(n2)−3/8. \frac{e^{1/8}}{2} \left(\frac{n}{2e}\right)^{\frac n 2} \exp\left(\frac 1 2 \ln\frac n 2 \sqrt{\frac n 2} + \sqrt{2 n} + \frac{(\ln\frac n 2)^2}{32} \right) \left(\frac n 2\right)^{-3/8}. Additionally, we analyze the limit laws of key parameters. Finally, we address random generation by designing both a uniform sampler and a Boltzmann sampler for these graphs.

Evidence graph

No public relationships recorded yet.

Integrity note: This page is a factual metadata record created by deterministic ingestion. It is not a claim that the work moves a mathematical frontier or has been independently verified.

Counting and Sampling Git Graphs — Mathematical Frontier Network