Submitted:
29 June 2026
Posted:
30 June 2026
You are already at the latest version
Abstract
Keywords:
MSC: 05C69; 68Q25; 68W05; 68Q17
1. Introduction
- Known complexity.
- via adjacency intersections. Chiba and Nishizeki [5] showed that listing all triangles costs , where is the arboricity of G; since , detection costs .
- Conditional lower bounds. Triangle detection sits at the centre of a web of fine-grained reductions [9,10]. The associated lower bounds are model-sensitive—they distinguish combinatorial from algebraic algorithms and are stated variously in terms of n or m—so they must be quoted with care. We make no claim against them in this paper.
- Our contribution.
A triangle of G is precisely a three-vertex independent set of the complement , and a large independent set of is exactly the part of V left uncovered by a small vertex cover of .
- Aegypti-fast (the default mode): use the dense branch as-is. A uniform -time, one-sided triangle certifier: every triple it returns is a genuine triangle, but a None answer is conclusive only in the sparse regime or when the dense-branch cover condition (Theorem 4 and Hypothesis 1) holds.
- Aegypti-safe: if the dense branch is inconclusive, fall back to Chiba–Nishizeki. Unconditionally sound and complete on every graph, at a worst-case cost of .
- the complement-cover view turns a linear-time vertex cover into a certificate-producing dense preconditioner for triangle detection;
- it is sound on every graph, and every positive answer carries an explicit witness;
- it composes cleanly with an exact fallback to give an unconditionally complete detector;
- it isolates a precise structural condition (Theorem 4, Hypothesis 1) under which the fast branch alone is complete; and
- empirically it avoids the fallback on every tested dense instance, including adversarial small-clique families and an exhaustive sweep of all graphs on at most seven vertices (Section 6).
- Paper organisation.
2. Preliminaries
2.1. Graph Notation
2.2. Two Structural Facts
2.3. The Hvala Vertex Cover
2.4. Chiba–Nishizeki Detection
3. The Aegypti Framework
| Algorithm 1 Aegypti(G,Fallback): a sound triangle certifier (with optional exact fallback). |
|
| Algorithm 2 Chiba-Nishizeki: exact adjacency-intersection detection. |
|
4. Correctness and Complexity Analysis
4.1. Soundness
4.2. Completeness
4.3. Running Time and Space
4.4. Position Relative to the Barriers
5. Related Work
6. Experimental Evaluation
7. Conclusion
- Hypothesis 1 (central). Does the Hvala ensemble leave at least three vertices uncovered on every graph with ? A proof would make Aegypti-fast an unconditionally complete detector; a counterexample would pinpoint exactly where the fallback is indispensable. This is the framework’s principal open question.
- Avoiding explicit complementation. The dense branch spends materialising . Can Hvala run implicitly on the complement to lower the constant?
- Counting. Does the cover/complement view extend from detecting one triangle to counting or listing triangles within the same budget?
References
- Watts, D.J.; Strogatz, S.H. Collective Dynamics of `Small-World’ Networks. Nature 1998, 393, 440–442. [Google Scholar] [CrossRef] [PubMed]
- Buluç, A.; Gilbert, J.R. The Combinatorial BLAS: Design, Implementation, and Applications. Int. J. High Perform. Comput. Appl. 2011, 25, 496–509. [Google Scholar] [CrossRef]
- Ngo, H.Q.; Porat, E.; Ré, C.; Rudra, A. Worst-Case Optimal Join Algorithms. In Proceedings of the Proceedings of the 31st ACM SIGMOD-SIGACT-SIGAI Symposium on Principles of Database Systems (PODS 2012), 2012; ACM; pp. 37–48. [Google Scholar] [CrossRef]
- Bron, C.; Kerbosch, J. Algorithm 457: Finding All Cliques of an Undirected Graph. Commun. ACM 1973, 16, 575–577. [Google Scholar] [CrossRef]
- Chiba, N.; Nishizeki, T. Arboricity and Subgraph Listing Algorithms. SIAM J. Comput. 1985, 14, 210–223. [Google Scholar] [CrossRef]
- Itai, A.; Rodeh, M. Finding a Minimum Circuit in a Graph. SIAM J. Comput. 1978, 7, 413–423. [Google Scholar] [CrossRef]
- Alman, J.; Duan, R.; Williams, V.V.; Xu, Y.; Xu, Z.; Zhou, R. More Asymmetry Yields Faster Matrix Multiplication. Preprint. 2024. Available online: https://arxiv.org/abs/2404.16349.
- Alon, N.; Yuster, R.; Zwick, U. Finding and counting given length cycles. Algorithmica 1997, 17, 209–223. [Google Scholar] [CrossRef]
- Williams, V.V.; Williams, R. Subcubic Equivalences Between Path, Matrix and Triangle Problems. In Proceedings of the Proceedings of the 51st Annual IEEE Symposium on Foundations of Computer Science (FOCS 2010), 2010; pp. 645–654. [Google Scholar] [CrossRef]
- Abboud, A.; Williams, V.V. Popular Conjectures Imply Strong Lower Bounds for Dynamic Problems. In Proceedings of the Proceedings of the 55th Annual IEEE Symposium on Foundations of Computer Science (FOCS 2014), 2014; pp. 434–443. [Google Scholar] [CrossRef]
- Vega, F. An Approximate Solution to the Minimum Vertex Cover Problem: The Hvala Algorithm. Gauge Freedom J. 2026, 1. [Google Scholar] [CrossRef]
- Latapy, M. Main-memory Triangle Computations for Very Large (Sparse (Power-Law)) Graphs. Theor. Comput. Sci. 2008, 407, 458–473. [Google Scholar] [CrossRef]
- Ortmann, M.; Brandes, U. Triangle Listing Algorithms: Back from the Diversion. In Proceedings of the Proceedings of the 16th Workshop on Algorithm Engineering and Experiments (ALENEX 2014), 2014; SIAM; pp. 1–8. [Google Scholar] [CrossRef]
- Williams, V.V.; Xu, Y.; Xu, Z.; Zhou, R. New Bounds for Matrix Multiplication: from Alpha to Omega. In Proceedings of the Proceedings of the 35th Annual ACM-SIAM Symposium on Discrete Algorithms (SODA 2024) SIAM, 2024; pp. 3792–3835. [Google Scholar] [CrossRef]
- Vega, F. Aegypti: Triangle-Free Solver. Software package. 2026. Available online: https://pypi.org/project/aegypti/.
- Vega, F. Hvala: Linear-Time Vertex Cover Approximation. Software package. 2026. Available online: https://pypi.org/project/hvala/.
| Family | Instances | With Δ | Aeg.-safe | Aeg.-fast | Chiba–Nish. | Matrix mult. |
|---|---|---|---|---|---|---|
| (ms) | (ms) | (ms) | (ms) | |||
| er_sparse | 2486 | 1139 | 0.040 | 0.036 | 0.023 | 0.115 |
| planted_triangle | 1500 | 1500 | 0.037 | 0.034 | 0.020 | 0.110 |
| atlas () | 1244 | 1080 | 0.023 | 0.021 | 0.007 | 0.100 |
| structured | 1000 | 541 | 0.218 | 0.203 | 0.027 | 0.119 |
| tri_free_bipartite | 1500 | 0 | 0.925 | 0.873 | 0.054 | 0.123 |
| omega3_tripartite | 400 | 400 | 0.644 | 0.669 | 0.018 | 0.130 |
| omega4_fourpartite | 300 | 300 | 0.611 | 0.657 | 0.020 | 0.137 |
| near_turan | 400 | 400 | 1.613 | 1.706 | 0.023 | 0.140 |
| er_dense | 2500 | 2500 | 1.417 | 1.422 | 0.028 | 0.175 |
| planted_clique | 1000 | 1000 | 1.435 | 1.390 | 0.025 | 0.160 |
| Sparse regime () | 6691 | 4061 | 0.034 | 0.030 | 0.019 | 0.111 |
| Dense regime () | 5639 | 4799 | 1.353 | 1.342 | 0.034 | 0.156 |
| Overall | 12330 | 8860 | 0.637 | 0.630 | 0.026 | 0.132 |
| Family | Dense | Dense Δ | Fallback | max | min |
|---|---|---|---|---|---|
| omega3_tripartite | 400 | 400 | 0 | 1.00 | 3 |
| omega4_fourpartite | 300 | 300 | 0 | 1.00 | 4 |
| near_turan | 400 | 400 | 0 | 1.00 | 3 |
| atlas () | 91 | 91 | 0 | 1.00 | 3 |
| er_dense | 2425 | 2425 | 0 | 1.20 | 3 |
| planted_clique | 987 | 987 | 0 | 1.17 | 3 |
| structured | 365 | 196 | 169 | 1.00 | 3 |
| tri_free_bipartite | 671 | 0 | 671 | 1.00 | – |
| Overall | 5639 | 4799 | 840 | 1.20 | 3 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).