,
Nick Fischer
Creative Commons Attribution 4.0 International license
Weighted variants of triangle detection are an important object of study because of their prominence in fine-grained complexity. We revisit the Node-Weighted Triangle problem, where the goal is to decide if a vertex-weighted graph contains a triangle whose node weights sum to zero. This problem has been the focus of a celebrated line of work, beginning with a subcubic-time algorithm [Vassilevska, Williams; STOC '06], and culminating in algorithms running almost in matrix multiplication time, O(MM(n) + n²⋅2^O(√{log n})) [Czumaj, Lingas; SODA '07], [Vassilevska W., Williams; STOC '09]. This runtime is almost-optimal, since even detecting an unweighted triangle is conjectured to require matrix multiplication time MM(n). However, the superpolylogarithmic 2^Ω(√{log n}) overhead persists in a world where near-optimal matrix multiplication is possible (i.e., MM(n) ≤ n²poly(log n)).
In this paper, we present a new algorithm solving Node-Weighted Triangle in O(MM(n)) time, closing the gap to unweighted triangle detection completely. Remarkably, our algorithm is much simpler than previous approaches, which use involved recursion schemes and communication protocols.
@InProceedings{akmal_et_al:LIPIcs.ICALP.2026.10,
author = {Akmal, Shyan and Fischer, Nick},
title = {{Node-Weighted Triangles: Faster and Simpler}},
booktitle = {53rd International Colloquium on Automata, Languages, and Programming (ICALP 2026)},
pages = {10:1--10:7},
series = {Leibniz International Proceedings in Informatics (LIPIcs)},
ISBN = {978-3-95977-428-4},
ISSN = {1868-8969},
year = {2026},
volume = {374},
editor = {Bhattacharya, Sayan and Nanongkai, Danupon and Benedikt, Michael and Puppis, Gabriele},
publisher = {Schloss Dagstuhl -- Leibniz-Zentrum f{\"u}r Informatik},
address = {Dagstuhl, Germany},
URL = {https://drops.dagstuhl.de/entities/document/10.4230/LIPIcs.ICALP.2026.10},
URN = {urn:nbn:de:0030-drops-263998},
doi = {10.4230/LIPIcs.ICALP.2026.10},
annote = {Keywords: fine-grained complexity, triangle detection, node-weighted triangle}
}