,
Christine Solnon
Creative Commons Attribution 4.0 International license
We consider the problem of generating all graphs that satisfy some given additional constraints (on vertex degrees, or cycle lengths, for example). Most previous works have proposed to generate canonical codes associated with adjacency matrices. In this paper, we consider canonical codes based on Breadth First Search (BFS), and we show how to generate them with Constraint Programming (CP): we introduce a set of basic constraints that must be satisfied by all canonical codes, thus breaking many symmetries, and we introduce a global constraint to break other symmetries. We illustrate the interest of our approach on connected claw-free cubic graphs, and show that it outperforms state-of-the-art CP and SAT Modulo Theory (SMT) approaches.
@InProceedings{peng_et_al:LIPIcs.CP.2025.32,
author = {Peng, Xiao and Solnon, Christine},
title = {{BFS-Based Canonical Codes for Generating Graphs with Constraint Programming}},
booktitle = {31st International Conference on Principles and Practice of Constraint Programming (CP 2025)},
pages = {32:1--32:16},
series = {Leibniz International Proceedings in Informatics (LIPIcs)},
ISBN = {978-3-95977-380-5},
ISSN = {1868-8969},
year = {2025},
volume = {340},
editor = {de la Banda, Maria Garcia},
publisher = {Schloss Dagstuhl -- Leibniz-Zentrum f{\"u}r Informatik},
address = {Dagstuhl, Germany},
URL = {https://drops.dagstuhl.de/entities/document/10.4230/LIPIcs.CP.2025.32},
URN = {urn:nbn:de:0030-drops-238935},
doi = {10.4230/LIPIcs.CP.2025.32},
annote = {Keywords: Graph Generation, Automorphisms, Symmetry Breaking}
}