Kolountzakis, Mihail N.; Miller, Gary L.; Peng, Richard; Tsourakakis, Charalampos E. Efficient triangle counting in large graphs via degree-based vertex partitioning. (English) Zbl 1245.05120 Internet Math. 8, No. 1-2, 161-185 (2012). Summary: The number of triangles is a computationally expensive graph statistic frequently used in complex network analysis (e.g., transitivity ratio), in various random graph models (e.g., exponential random graph model), and in important real-world applications such as spam detection, uncovering the hidden thematic structures in the Web, and link recommendation. Counting triangles in graphs with millions and billions of edges requires algorithms that run fast, use little space, provide accurate estimates of the number of triangles, and preferably are parallelizable. In this paper we present an efficient triangle-counting approximation algorithm that can be adapted to the semistreaming model. Its key idea is to combine the sampling algorithm of Tsourakakis, and the partitioning of the set of vertices into high- and low-degree subsets as in Alon, treating each set appropriately. From a mathematical perspective, we present a simplified proof of Tsourakakis that uses the powerful Kim-Vu concentration inequality based on the Hajnal-Szemerédi theorem. Furthermore, we improve bounds of existing triple-sampling techniques based on a theorem of Ahlswede and Katona. We obtain a running time \(O\left(m + \frac{m^{3 / 2} \log n} {t\epsilon^2}\right)\) and an \((1 \pm \epsilon)\) approximation, where \(n\) is the number of vertices, \(m\) is the number of edges, and \(\Delta\) is the maximum number of triangles in which any single edge is contained. Furthermore, we show how this algorithm can be adapted to the semistreaming model with space usage \(O\left(m^{1/2} \log n + \frac{m^{3 / 2} \log n} {t\epsilon^2}\right )\) and a constant number of passes (three) over the graph stream. We apply our methods to various networks with several millions of edges and we obtain excellent results, outperforming existing triangle-counting methods. Finally, we propose a random-projection-based method for triangle counting and provide a sufficient condition to obtain an estimate with low variance. Cited in 13 Documents MSC: 05C82 Small world graphs, complex networks (graph-theoretic aspects) 05C70 Edge subsets with special properties (factorization, matching, partitioning, covering and packing, etc.) 05C80 Random graphs (graph-theoretic aspects) 68M11 Internet topics 05C30 Enumeration in graph theory × Cite Format Result Cite Review PDF Full Text: DOI Euclid