English

Cograph generation with linear delay

Discrete Mathematics 2018-10-31 v1 Combinatorics

Abstract

Cographs have always been a research target in areas such as coloring, graph decomposition, and spectral theory. In this work, we present an algorithm to generate all unlabeled cographs with nn vertices, based on the generation of cotrees. The delay of our algorithm (time spent between two consecutive outputs) is O(n)O(n). The time needed to generate the first output is also O(n)O(n), which gives an overall O(nMn)O(n\,M_n) time complexity, where MnM_n is the number of unlabeled cographs with nn vertices. The algorithm avoids the generation of duplicates (isomorphic outputs) and produces, as a by-product, a linear ordering of unlabeled cographs wih nn vertices.

Cite

@article{arxiv.1612.05827,
  title  = {Cograph generation with linear delay},
  author = {Átila A. Jones and Fábio Protti and Renata R. Del-Vecchio},
  journal= {arXiv preprint arXiv:1612.05827},
  year   = {2018}
}

Comments

22 pages, 3 figures. Submitted to Theoretical Computer Science

R2 v1 2026-06-22T17:27:06.909Z