Aegypti v0.4.3: Triangle Detection via Lookahead Clique-Constrained Union-Find and a Residual Matching Fallback
Frank Vega
Source record
Source: Crossref
Published: May 25, 2026
DOI: 10.20944/preprints202511.2197.v5
Open original source ↗Source abstract
We present \textsc{Aegypti} v0.4.3, a \emph{hybrid heuristic} for detecting a single triangle in an undirected graph with vertices and edges. The algorithm has a fast Phase~1 based on a sparse clique-constrained Union-Find structure (\textsc{FastCliqueUF}). It first unions a maximal matching , then streams over the remaining edges. A rejected non-matching edge is not deleted immediately: it is kept alive for a fixed lookahead batch of size , allowing nearby residual edges to complete a triangle before the failed edge is hidden from future clique tests. Phase~1 also uses a bounded common-neighbour probe on promising residual edges. These changes preserve linear Phase~1 work, , while increasing the probability of early detection on triangle-rich graphs. If Phase~1 fails, Phase~2 computes a greedy vertex cover of the residual graph and performs adjacency-intersection enumeration only from that cover, while intersections still use the original graph so triangles touching a matching edge remain visible. Thus the fallback is not the full Chiba--Nishizeki scan over all vertices: its cost is , where and is the sum of smaller-side intersection costs over residual base edges scanned from . Since , the coarse worst-case upper bound is , while the implementation-specific bound is . The worst-case exponent is still inherited from the classical Chiba--Nishizeki fallback; \textsc{Aegypti} is not claimed as a new asymptotic upper bound. Its contribution is practical: early exits on dense triangle-rich graphs, explicit witness triples, and a residual matching-edge and vertex-cover saving in the fallback. We evaluate v0.4.3 on an expanded 31-instance DIMACS benchmark suite. The smart algorithm wins individual instances, including of deliberately triangle-rich adversarial instances, while sparse matrix multiplication remains fastest in total time because dense triangle-free bipartite graphs force the fallback.
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.