English

Constrained graph generation: Preserving diameter and clustering coefficient simultaneously

Social and Information Networks 2026-02-24 v1 Discrete Mathematics Probability

Abstract

Generating graphs subject to strict structural constraints is a fundamental computational challenge in network science. Simultaneously preserving interacting properties-such as the diameter and the clustering coefficient- is particularly demanding. Simple constructive algorithms often fail to locate vanishingly small sets of feasible graphs, while traditional Markov-chain Monte Carlo (MCMC) samplers suffer from severe ergodicity breaking. In this paper, we propose a two-step hybrid framework combining Ant Colony Optimization (ACO) and MCMC sampling. First, we design a layered ACO heuristic to perform a guided global search, effectively locating valid graphs with prescribed diameter and clustering coefficient. Second, we use these ACO-designed graphs as structurally distinct seed states for an MCMC rewiring algorithm. We evaluate this framework across a wide range of graph edge densities and varying diameter-clustering-coefficient constraint regimes. Using the spectral distance of the normalized Laplacian to quantify structural diversity of the resulting graphs, our experiments reveal a sharp contrast between the methods. Standard MCMC samplers remain rigidly trapped in an isolated subset of feasible graphs around their initial seeds. Conversely, our hybrid ACO-MCMC approach successfully bridges disconnected configuration landscapes, generating a vastly richer and structurally diverse set of valid graphs.

Keywords

Cite

@article{arxiv.2602.19595,
  title  = {Constrained graph generation: Preserving diameter and clustering coefficient simultaneously},
  author = {Dávid Ferenczi and Alexander Grigoriev},
  journal= {arXiv preprint arXiv:2602.19595},
  year   = {2026}
}

Comments

15 pages, 5 figures

R2 v1 2026-07-01T10:47:00.556Z