betaFeedback

WorksComputer Science

Enumerating Small Potential Maximal Cliques with Fixed-Parameter Delay

Abstract

A potential maximal clique (PMC) of a graph GG is a nonempty vertex set that forms a maximal clique in some minimal triangulation of GG. Listing the PMCs of a graph is a key step in exact algorithms for computing treewidth, minimum fill-in, and related graph parameters. We present a deterministic algorithm that enumerates all PMCs of cardinality at most kk in an nn-vertex graph GG, without repetition, with delay 2O(k3)n4log⁡n2^{O(k^3)}n^4\log n. This bound also covers the preprocessing time before the first output, the time from the last output to termination, and the total running time when no such PMC exists. At the core of our enumeration algorithm is a procedure that solves the following constrained search problem within the same time bound: given sets of required and excluded vertices I,O⊆V(G)I,O\subseteq V(G), find a PMC ΩΩ of size at most kk satisfying I⊆ΩI\subseteqΩ and Ω∩O=∅Ω\cap O=\emptyset, or determine that none exists. Our enumeration algorithm directly supports these inclusion and exclusion constraints as well. Our approach builds on the recursive understanding technique of Chitnis et al.~\cite{chitnis2016} and the reduction to unbreakable graphs of Lokshtanov et al.~\cite{lokshtanov2018}. A graph is (q,k)(q,k)-unbreakable if no removal of at most kk vertices leaves two disjoint unions of connected components that each contain more than qq vertices. We first solve constrained PMC search on (q,k)(q,k)-unbreakable graphs, and then apply this procedure to replace separated subgraphs with graphs of size 2O(k2)2^{O(k^2)} that preserve the existence of a constrained solution for every graph attached along the shared boundary.

Introduction

A graph GG is chordal if every cycle of length four or more contains a chord, that is, an edge joining two nonconsecutive vertices of the cycle. A triangulation of GG is a chordal supergraph obtained by adding edges to GG, and it is minimal if no proper subset of the added edges yields a chordal graph [1]. A potential maximal clique (PMC) of GG is a nonempty vertex set that forms a maximal clique in some minimal triangulation of GG. A PMC need not be a clique in GG itself: in a four-vertex cycle, adding either diagonal produces a minimal triangulation consisting of two triangles, so each of the four three-vertex subsets is a PMC even though the cycle is triangle-free. In the PMC enumeration problem, the goal is to list all PMCs of an input graph GG without repetition.

Potential maximal cliques serve as the candidate bags for dynamic programming algorithms that construct optimal tree decompositions and triangulations. Given the full set of PMCs of GG, the classical algorithm of Bouchitté and Todinca [1] computes both treewidth (one less than the minimum, over all triangulations, of the maximum clique size) and minimum fill-in (the minimum number of edges needed to triangulate GG) in time polynomial in nn and the number of PMCs, without explicitly enumerating the minimal triangulations themselves. Fomin, Todinca, and Villanger [11] substantially generalized this paradigm, showing that a broad class of induced-subgraph and vertex-deletion problems—including Maximum Independent Set, Minimum Feedback Vertex Set, and Longest Induced Path—can likewise be solved in time polynomial in nn and the number of PMCs.

Finding low-cost triangulations and tree decompositions is also central to numerical linear algebra, probabilistic inference, and database query processing. In Cholesky factorization of sparse symmetric positive definite matrices, fill-in edges correspond to new nonzero entries introduced during Gaussian elimination, so minimizing fill-in directly reduces storage and can reduce arithmetic cost [12]. In discrete Bayesian networks, exact inference via junction trees passes messages between potentials defined over the maximal cliques of a moralized, triangulated graph; because a table over bb binary variables has 2b2^b entries, the maximum clique size governs both space and time complexity [13]. Low-width tree decompositions similarly define tractable classes of constraint satisfaction problems and conjunctive queries with projections in relational databases [14]. Motivated by these applications, Korhonen, Berg, and Järvisalo [15] implemented and evaluated PMC-based exact solvers for several graph and hypergraph width measures as well as total table size in Bayesian networks; on standard benchmarks, these algorithms were competitive with problem-specific solvers.

Because a graph can have exponentially many PMCs [2], generating the entire family PMC⁡(G)\operatorname{PMC}(G) quickly becomes prohibitive. Indeed, Korhonen, Berg, and Järvisalo [16] identified PMC enumeration as the primary scalability bottleneck of the Bouchitté–Todinca framework in practice. For parameterized and bounded-width problems, however, full enumeration is unnecessary: deciding whether the treewidth of GG is at most k−1k-1, for instance, requires only the PMCs of size at most kk [16]. In this work, we study the problem of enumerating all PMCs of cardinality at most kk directly, without generating larger PMCs.

Our results. We present a deterministic algorithm that lists all PMCs of size at most kk in an arbitrary graph GG with fixed-parameter delay, meaning that the time elapsed before the first output, between any two consecutive outputs, and after the last output is bounded by f(k)⋅ncf(k) \cdot n^c for a computable function ff and a constant cc independent of kk. We establish this result by reducing enumeration to the constrained search problem, which we call Extend: given subsets I,O⊆V(G)I,O \subseteq V(G) of required and excluded vertices, find a PMC Ω\Omega of size at most kk such that I⊆ΩI \subseteq\Omega and Ω∩O=∅\Omega\cap O = \varnothing, or report that no such PMC exists.

Theorem 1.1 (Main result). Let GG be an nn-vertex graph, where n≥2n \ge2, let k≥1k \ge1, and let I,O⊆V(G)I,O \subseteq V(G). There is a deterministic algorithm that finds a PMC Ω\Omega of size at most kk containing II and avoiding OO, or correctly reports that none exists, in time

2O(k3)n4log⁡n.2^{O(k^3)} n^4 \log n.

All such PMCs can be enumerated without repetition with delay 2O(k3)n4log⁡n2^{O(k^3)} n^4 \log n. This delay bound also covers the initial and final waiting times, and thus MM outputs are produced in total time (M+1)2O(k3)n4log⁡n(M+1)2^{O(k^3)} n^4 \log n.

The search bound of Theorem 1.1 is established in Theorem 11.1, and the well-known Lawler–Murty reduction from constrained search to enumeration [18, 19] is given at the end of this section. To our knowledge, Theorem 1.1 provides the first fixed-parameter delay algorithm for enumerating PMCs of size at most kk in general graphs. Previously, Fomin and Villanger [3] gave an algorithm for listing PMCs of size at most kk whose polynomial degree depends on kk (yielding an XP running time). Recently, Bergé, Limouzy, and Schvire [17] presented an output-linear algorithm for listing all PMCs of a connected graph GG in total time O(n4⋅m⋅∣PMC⁡(G)∣)O(n^4 \cdot m \cdot|\operatorname{PMC}(G)|), where m=∣E(G)∣m=|E(G)|. Theorem 1.1 guarantees both fixed-parameter delay and output-linear total time in the parameterized setting.

Recognizing a PMC in the whole graph. Whether a nonempty vertex subset Ω⊆V(G)\Omega\subseteq V(G) is a PMC is a global property of G−ΩG-\Omega. By the characterization of Bouchitté and Todinca [1, 2], $\Omega is a PMC of GG if and only if (1) no connected component of G−ΩG-\Omega is adjacent to every vertex of Ω\Omega (no component is full), and (2) for every pair of nonadjacent vertices in Ω\Omega, some connected component of G−ΩG-\Omega contains a neighbor of each vertex. Consequently, components of G−ΩG-\Omega play a dual role: they provide the paths that witness condition (2), and they can also form full-component obstructions that violate condition (1). Naive graph simplifications, such as deleting vertices or splitting the graph along a separator, can destroy required connections or inadvertently eliminate a full component. While testing all vertex subsets of size at most kk takes nO(k)n^{O(k)} time, deciding whether a prescribed vertex set can be extended to a PMC of unbounded size is NP-complete [17]. Our algorithm must therefore exploit the cardinality bound kk to restrict the search space while faithfully preserving both connectivity witnesses and full-component obstructions across graph reductions.

Locating a PMC in a small connected region. We begin by solving Extend on (q,k)(q,k)-unbreakable graphs—those in which no separator of size at most kk partitions the remaining vertices into two disjoint unions of connected components that each exceed size qq. We prove that if GG is (q,k)(q,k)-unbreakable and n>3q+kn > 3q+k, then every PMC Ω\Omega of size at most kk satisfies S⊊Ω⊆C∪SS \subsetneq\Omega\subseteq C \cup S, where CC is a connected vertex set of size at most qq and S=NG(C)S=N_G(C) is its external neighborhood of size at most k−1k-1.

To see why this holds, observe that since ∣Ω∣≤k|\Omega| \leq k and n>3q+kn > 3q+k, the (q,k)(q,k)-unbreakability of GG implies that G−ΩG-\Omega has a unique connected component DD of size greater than qq. Set S=NG(D)S=N_G(D). Because Ω\Omega has no full component in G−ΩG-\Omega, we have S⊊ΩS \subsetneq\Omega. By the pairwise connection property of PMCs, any two vertices in Ω∖S\Omega\setminus S are either adjacent or connected via a component of G−ΩG-\Omega distinct from DD; in either case, the connecting path avoids SS, which places all vertices of Ω∖S\Omega\setminus S inside a single connected component CC of G−SG-S. The same pairwise condition ensures that every vertex of SS has a neighbor in CC, so NG(C)=SN_G(C)=S. Finally, because SS separates CC from the large component DD and ∣S∣≤∣Ω∣−1≤k−1|S| \leq|\Omega|-1 \leq k-1, unbreakability forces ∣C∣≤q|C| \leq q. Thus Ω\Omega consists of the entire neighborhood S=NG(C)S=N_G(C) together with a nonempty subset of CC. Adapting the bounded-neighborhood connected-set enumeration of Fomin and Villanger [3 Section 3], we enumerate all candidate pairs (C,NG(C))(C,N_G(C)) with ∣C∣≤q|C| \leq q and ∣NG(C)∣≤k−1|N_G(C)| \leq k-1 by branching on whether each newly reached neighbor joins CC or NG(C)N_G(C). Testing the resulting subsets Ω=S∪X\Omega=S\cup X (for nonempty X⊆CX\subseteq C with ∣X∣≤k−∣S∣|X|\leq k-|S|) against the global PMC criterion solves Extend on (q,k)(q,k)-unbreakable graphs in time 2O(klog⁡(2+q/k))(n+1)32^{O(k\log(2+q/k))}(n+1)^3 (Theorem 3.1). Crucially, the dependence on qq in the exponent is logarithmic: in our general reduction, qq will be 2O(k2)2^{O(k^2)}, so the factor 2O(klog⁡(2+q/k))2^{O(k\log(2+q/k))} becomes 2O(k3)2^{O(k^3)}.

Replacing a separated piece. To handle arbitrary graphs, we apply the recursive understanding framework [4, 5]. When GG admits a small separation, we decompose GG into two induced subgraphs HH and JJ that overlap only on a small boundary Z=V(H)∩V(J)Z=V(H)\cap V(J), and we replace the piece HH with a graph KK whose size is bounded by a function of kk. For every outside graph JJ attached along ZZ, the graph obtained by attaching JJ to HH (via ZZ) must have a PMC of size at most kk satisfying its inclusion and exclusion constraints if and only if the graph obtained by attaching the same JJ to KK has such a PMC under the corresponding constraints. Thus, replacing HH by KK preserves whether a constrained solution exists, regardless of the graph attached outside the boundary. We construct KK in two stages: first, given a subset R⊆V(H)R\subseteq V(H) of retained vertices (containing ZZ and all required vertices of HH), we compress HH into a graph KK of size at most 2∣R∣2|R| that preserves PMC membership for all candidates Ω\Omega satisfying Ω∩V(H)⊂R\Omega\cap V(H)\subset R; second, we compute a set RR of size 2O(k2)2^{O(k^2)} such that for every outside graph JJ and every choice of constraints on JJ, if H∪JH\cup J admits a constrained PMC of size at most kk, then it admits one whose intersection with V(H)V(H) is contained in RR.

Preserving PMCs under torso compression. Given the retained set R⊆V(H)R \subseteq V(H), our starting point is the torso Tor⁡(H,R)\operatorname{Tor}(H,R), obtained from H[R]H[R] by turning the neighborhood NH(C)⊆RN_H(C) \subseteq R of each connected component CC of H−RH-R into a clique [6]. While the torso preserves all paths through H−RH-R whose endpoints lie in RR, it does not preserve PMC membership on its own: if a deleted component CC of H−RH-R had NH(C)=ΩN_H(C)=\Omega, then CC was a full component for Ω\Omega in HH, and deleting CC removes this obstruction. For example, in the three-vertex path aa–cc–bb with R={a,b}R=\{a,b\}, the torso is the single edge (a,b)(a,b), for which {a,b}\{a,b\} is a PMC even though the deleted component {c}\{c\} makes {a,b}\{a,b\} invalid in HH. Lemma 9.3 shows that, for any outside graph JJ attached to HH via ZZ, a candidate Ω⊆R∪V(J)\Omega\subseteq R \cup V(J) is a PMC before replacing HH by Tor⁡(H,R)\operatorname{Tor}(H,R) if and only if it is a PMC after making the replacement and Ω≠NH(C)\Omega\ne N_H(C) for every component CC of H−RH-R.

The neighborhoods requiring this repair are both cliques and PMCs of the torso Tor⁡(H,R)\operatorname{Tor}(H,R). By a bound of Fomin and Villanger [10], there are at most ∣R∣|R| such neighborhoods. We therefore add at most ∣R∣|R| auxiliary vertices, giving a replacement graph with at most 2∣R∣2|R| vertices. For every outside graph attached along the boundary, this replacement preserves whether each candidate formed from vertices of RR and of the outside graph is a PMC (Theorem 9.1).

Representing attachments by finitely many tests. To select the retained set R⊆V(H)R \subseteq V(H) when HH is (q,k)(q,k)-unbreakable, we must ensure that RR captures at least one witness Ω∩V(H)\Omega\cap V(H) for every outside graph JJ and every feasible intersection X=Ω∩V(J)X=\Omega\cap V(J) of size at most kk. In Lemma 10.2, we show that once X⊆V(J)X \subseteq V(J) is fixed, the effect of JJ on candidates Ω\Omega with Ω∩V(J)=X\Omega\cap V(J)=X can be simulated by a small graph JXJ_X on Z∪XZ \cup X together with at most one excluded auxiliary vertex: specifically, JXJ_X is formed from the torso Tor⁡(J,Z∪X)\operatorname{Tor}(J,Z \cup X) by adding a single excluded vertex adjacent to XX whenever J−(Z∪X)J-(Z \cup X) contains a component whose neighborhood in JJ is exactly XX. Thus any outside attachment JJ and selected set XX of size at most kk can be represented by a test graph TT consisting of the boundary ZZ and at most k+1k+1 additional vertices.

We choose RR using a small collection of test-graphs that capture how a solution can interact with the rest of the graph. For each test, we apply our algorithm for constrained PMC search on unbreakable graphs to find one solution, if one exists, and retain the vertices of HH used by that solution. We also keep the required vertices and the vertices through which HH connects to the rest of the graph. Our construction yields a set RR of size 2O(k2)2^{O(k^2)} with the following guarantee: whenever attaching an outside graph to HH admits a solution, at least one such solution uses only vertices of RR within HH (Theorem 10.1).

Reducing a general graph. The construction described above gives a small replacement for an unbreakable graph. To handle a general graph, we use a procedure of Chitnis et al. [4], in the form given by Golovach et al. [7], that either certifies the required unbreakability condition or divides the graph into two smaller pieces that meet in at most kk vertices. In the latter case, we first reduce one piece, applying the same process within it if necessary. Once we obtain a small replacement for that piece, we substitute the piece with this small replacement and continue reducing the resulting graph.

The pieces are chosen large enough that each substitution decreases the number of vertices. We prove that only O(n)O(n) applications of this reduction are needed, and that the entire input can be replaced by a graph with 2O(k2)2^{O(k^2)} vertices. We then search this small graph directly for existence of the constrained PMC. Each replacement preserves the existence of a constrained solution. Moreover, auxiliary vertices cannot be selected, and our preservation guarantees ensure that every returned solution is a valid constrained PMC of the original graph.

References

  1. [1]Vincent Bouchitté and Ioan Todinca. Treewidth and minimum fill-in: Grouping the minimal separators. SIAM Journal on Computing, 31(1):212–232, 2001. doi:10.1137/S0097539799359683.DOI
  2. [2]Caroline Brosse, Alessio Conte, Vincent Limouzy, Giulia Punzi, and Davide Rucci. Output-Sensitive Enumeration of Potential Maximal Cliques in Polynomial Space. In IWOCA 2024, LNCS 14764, pages 382–395, 2024.DOI
  3. [3]Fedor V. Fomin and Yngve Villanger. Treewidth computation and extremal combinatorics. arXiv:0803.1321v2, 2008, Section 3. Journal version: Combinatorica, 32(3):289–308, 2012, doi:10.1007/s00493-012-2536-z.DOI
  4. [4]Rajesh Chitnis, Marek Cygan, MohammadTaghi Hajiaghayi, Marcin Pilipczuk, and Michał Pilipczuk. Designing FPT Algorithms for Cut Problems Using Randomized Contractions. SIAM Journal on Computing, 45(4):1171–1229, 2016. doi:10.1137/15M1032077. Full version: arXiv:1207.4079v2, Section 2.1.DOI
  5. [5]Daniel Lokshtanov, M. S. Ramanujan, Saket Saurabh, and Meirav Zehavi. Reducing CMSO Model Checking to Highly Connected Graphs. In ICALP 2018, LIPIcs 107, pages 135:1–135:14, 2018. doi:10.4230/LIPIcs.ICALP.2018.135.DOI
  6. [6]Dániel Marx, Barry O’Sullivan, and Igor Razgon. Finding small separators in linear time via treewidth reduction. ACM Transactions on Algorithms, 9(4), Article 30, 2013. doi:10.1145/2500119. Full version: arXiv:1110.4765v1, Section 2.3.DOI
  7. [7]Petr A. Golovach, Pinar Heggernes, Paloma T. Lima, and Pedro Montealegre. Finding Connected Secluded Subgraphs. In IPEC 2017, LIPIcs 89, pages 18:1–18:13, 2018. doi:10.4230/LIPIcs.IPEC.2017.18.arxiv.org/abs/1710.10979
  8. [8]Norman L. Johnson, Adrienne W. Kemp, and Samuel Kotz. Univariate Discrete Distributions. Third edition, Wiley, 2005. doi:10.1002/0471715816.DOI
  9. [9]Stasys Jukna. Extremal Combinatorics: With Applications in Computer Science. Second edition, Springer, 2011. doi:10.1007/978-3-642-17364-6.DOI
  10. [10]Fedor V. Fomin and Yngve Villanger. Subexponential Parameterized Algorithm for Minimum Fill-in. SIAM Journal on Computing, 42(6):2197–2216, 2013. doi:10.1137/11085390X.DOI
  11. [11]Fedor V. Fomin, Ioan Todinca, and Yngve Villanger. Large Induced Subgraphs via Triangulations and CMSO. SIAM Journal on Computing, 44(1):54–87, 2015. doi:10.1137/140964801. Full version: arXiv:1309.1559.DOI
  12. [12]Donald J. Rose, R. Endre Tarjan, and George S. Lueker. Algorithmic Aspects of Vertex Elimination on Graphs. SIAM Journal on Computing, 5(2):266–283, 1976. doi:10.1137/0205021.DOI
  13. [13]Hans L. Bodlaender and Fedor V. Fomin. Tree decompositions with small cost. Discrete Applied Mathematics, 145(2):143–154, 2005. doi:10.1016/j.dam.2004.01.008.DOI
  14. [14]Martin Grohe and Dániel Marx. Constraint Solving via Fractional Edge Covers. ACM Transactions on Algorithms, 11(1), Article 4, pages 4:1–4:20, 2014. doi:10.1145/2636918. Full version: arXiv:1711.04506.DOI
  15. [15]Tuukka Korhonen, Jeremias Berg, and Matti Järvisalo. Solving Graph Problems via Potential Maximal Cliques: An Experimental Evaluation of the Bouchitté–Todinca Algorithm. ACM Journal of Experimental Algorithmics, 24(1), Article 1.9, pages 1.9:1–1.9:19, 2019. doi:10.1145/3301297.DOI
  16. [16]Tuukka Korhonen, Jeremias Berg, and Matti Järvisalo. Enumerating Potential Maximal Cliques via SAT and ASP. In Proceedings of the 28th International Joint Conference on Artificial Intelligence (IJCAI 2019), pages 1116–1122, 2019. doi:10.24963/ijcai.2019/156.DOI
  17. [17]Pierre Bergé, Vincent Limouzy, and Nicolas Schivré. Output-linear time enumeration of potential maximal cliques. Preprint, 14 October 2026. arXiv:2610.19850v1.arxiv.org/abs/2610.19850
  18. [18]Katta G. Murty. Letter to the Editor—An Algorithm for Ranking all the Assignments in Order of Increasing Cost. Operations Research, 16(3):682–687, 1968. doi:10.1287/opre.16.3.682.DOI
  19. [19]Eugene L. Lawler. A Procedure for Computing the K Best Solutions to Discrete Optimization Problems and Its Application to the Shortest Path Problem. Management Science, 18(7):401–405, 1972. doi:10.1287/mnsc.18.7.401.DOI

Paper details

vlnc:W_n9kmkmse
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 3

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents