Indexed metadata

Triangle Detection via Complement Vertex Covers: A Fast Certifier with an Exact Fallback

Frank Vega

Source record

Source: Crossref

Published: Jun 30, 2026

DOI: 10.20944/preprints202511.2197.v6

Open original source ↗

Source abstract

We present Aegypti, a triangle-detection framework for an undirected simple graph G=(V,E) G=(V,E) with n=V n=|V| vertices and m=E m=|E| edges, built on the duality between triangles and independent sets: a triangle of G G is exactly a three-vertex independent set of the complement G \overline{G} , which is what a small vertex cover of G \overline{G} leaves uncovered. Aegypti dispatches on density at n4/3 \lceil n^{4/3}\rceil . When mn4/3 m \le \lceil n^{4/3}\rceil it runs the exact Chiba--Nishizeki routine, whose O(m3/2) \mathcal{O}(m^{3/2}) cost is O(n2) \mathcal{O}(n^{2}) on inputs this sparse. When m>n4/3 m > \lceil n^{4/3}\rceil it covers G \overline{G} with the linear-time Hvala algorithm and reads three uncovered vertices, certified as a triangle in O(1) \mathcal{O}(1) . We prove unconditional soundness for both variants. The fast variant is a quadratic-time, one-sided certificate procedure: in the dense regime it is complete exactly when the Hvala cover of G \overline{G} leaves at least three vertices uncovered, a condition the factor-2 2 bound guarantees only for graphs withω(G)(n+3)/2 \omega(G) \ge \lceil(n+3)/2\rceil ; its failure to return a triangle is not, by itself, evidence of triangle-freeness. The safe variant adds a Chiba--Nishizeki fallback and is therefore unconditionally complete, with worst-case running time O(n+m3/2) \mathcal{O}(n + m^{3/2}) . We make no claim against any fine-grained lower bound. Empirically, across a deterministic benchmark---random and structured families, adversarial dense families with small clique number, and an exhaustive sweep of all graphs on at most seven vertices---all routines agreed with an exact oracle and the fast dense branch recorded no miss. A public reference implementation is provided in the aegypti Python package, which depends on hvala.

Evidence graph

No public relationships recorded yet.

Integrity note: This page is a factual metadata record created by deterministic ingestion. It is not a claim that the work moves a mathematical frontier or has been independently verified.