Dávid Ferenczi, Alexander Grigoriev
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 feasible regions within the highly constrained configuration space, 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 construction heuristic to perform a guided global search, effectively locating valid graph structures. Second, we use these discovered configurations as structurally distinct seed states for an MCMC rewiring algorithm. We evaluate this framework across multiple edge densities and constraint regimes. Using the spectral distance of the normalized Laplacian to quantify structural diversity, our experiments reveal a stark contrast between the methods. Standard MCMC samplers remain rigidly trapped in isolated regions 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.