@techreport{b2a3b4c005a046fda435ab059f67ead8,
title = "Constrained graph generation:: Preserving diameter and clustering coefficient simultaneously",
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 = "Graph generation, ACO, MCMC",
author = "D{\'a}vid Ferenczi and Alexander Grigoriev",
note = "https://github.com/ferenczid/constrained\_graph\_generation",
year = "2026",
month = feb,
day = "23",
doi = "10.48550/arXiv.2602.19595",
language = "English",
series = "arXiv.org",
number = "2602.19595",
publisher = "Cornell University - arXiv",
address = "United States",
type = "WorkingPaper",
institution = "Cornell University - arXiv",
}