English

Approximate Triangle Counting

Data Structures and Algorithms 2009-06-30 v2 Discrete Mathematics

Abstract

Triangle counting is an important problem in graph mining. Clustering coefficients of vertices and the transitivity ratio of the graph are two metrics often used in complex network analysis. Furthermore, triangles have been used successfully in several real-world applications. However, exact triangle counting is an expensive computation. In this paper we present the analysis of a practical sampling algorithm for counting triangles in graphs. Our analysis yields optimal values for the sampling rate, thus resulting in tremendous speedups ranging from \emph{2800}x to \emph{70000}x when applied to real-world networks. At the same time the accuracy of the estimation is excellent. Our contributions include experimentation on graphs with several millions of nodes and edges, where we show how practical our proposed method is. Finally, our algorithm's implementation is a part of the \pegasus library (Code and datasets are available at (http://www.cs.cmu.edu/~ctsourak/).) a Peta-Graph Mining library implemented in Hadoop, the open source version of Mapreduce.

Keywords

Cite

@article{arxiv.0904.3761,
  title  = {Approximate Triangle Counting},
  author = {Charalampos E. Tsourakakis and Mihail N. Kolountzakis and Gary L. Miller},
  journal= {arXiv preprint arXiv:0904.3761},
  year   = {2009}
}

Comments

1) 16 pages, 2 figures, under submission 2) Removed the erroneous random projection part. Thanks to Ioannis Koutis for pointing out the error. 3) Added experimental session

R2 v1 2026-06-21T12:54:37.099Z