Efficient algorithms for large-scale local triangle counting
Open Access
- 22 October 2010
- journal article
- research article
- Published by Association for Computing Machinery (ACM) in ACM Transactions on Knowledge Discovery From Data
- Vol. 4 (3) , 1-28
Abstract
In this article, we study the problem of approximate local triangle counting in large graphs. Namely, given a large graph G =( V,E ) we want to estimate as accurately as possible the number of triangles incident to every node v ∈ V in the graph. We consider the question both for undirected and directed graphs. The problem of computing the global number of triangles in a graph has been considered before, but to our knowledge this is the first contribution that addresses the problem of approximate local triangle counting with a focus on the efficiency issues arising in massive graphs and that also considers the directed case. The distribution of the local number of triangles and the related local clustering coefficient can be used in many interesting applications. For example, we show that the measures we compute can help detect the presence of spamming activity in large-scale Web graphs, as well as to provide useful features for content quality assessment in social networks. For computing the local number of triangles (undirected and directed), we propose two approximation algorithms, which are based on the idea of min-wise independent permutations [Broder et al. 1998]. Our algorithms operate in a semi-streaming fashion, using O (| V |) space in main memory and performing O (log | V |) sequential scans over the edges of the graph. The first algorithm we describe in this article also uses O (| E |) space of external memory during computation, while the second algorithm uses only main memory. We present the theoretical analysis as well as experimental results on large graphs, demonstrating the practical efficiency of our approach.Keywords
Funding Information
- Ministero dell'Istruzione, dell'Università e della Ricerca (RBIN047MH9)
This publication has 29 references indexed in Scilit:
- Main-memory triangle computations for very large (sparse (power-law)) graphsTheoretical Computer Science, 2008
- A reference collection for web spamACM SIGIR Forum, 2006
- Structure and time evolution of an Internet dating communitySocial Networks, 2004
- The Structure and Function of Complex NetworksSIAM Review, 2003
- A subquadratic triad census algorithm for large sparse networks with small maximum degreeSocial Networks, 2001
- External memory algorithms and data structuresACM Computing Surveys, 2001
- Trawling the Web for emerging cyber-communitiesComputer Networks, 1999
- Directed triangles in directed graphsDiscrete Mathematics, 1992
- Matrix multiplication via arithmetic progressionsJournal of Symbolic Computation, 1990
- Finding a Minimum Circuit in a GraphSIAM Journal on Computing, 1978