Fast Triangle Detection and Enumeration in Undirected Graphs: The Aegypti Algorithm
Frank Vega
Source record
Source: Crossref
Published: Mar 4, 2026
DOI: 10.20944/preprints202511.2197.v3
Open original source ↗Source abstract
The triangle finding problem is a cornerstone of complex network analysis, serving as the primitive for computing clustering coefficients and transitivity. This paper presents , a practical algorithm for triangle detection and enumeration in undirected graphs. By combining a descending degree-ordered vertex-iterator with a hybrid strategy that adapts to graph density, achieves a worst-case runtime of for full enumeration, which matches the bound established by Chiba and Nishizeki for arboricity-based listing algorithms. For the detection variant (\( \texttt{first_triangle}=\text{True} \)), we prove that sorting by non-increasing degree enables early termination in worst-case time when the maximum-degree vertex participates in a triangle, where the quadratic factor in reduces to in expectation when the local clustering coefficient . Experiments on complement graphs of DIMACS maximum-clique benchmark instances confirm that detection terminates sub-millisecond on the majority of instances, while the matrix-multiplication baseline requires substantially more time on the same inputs.
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.