How to Count Triangles, without Seeing the Whole Graph

被引:19
作者
Bera, Suman K. [1 ]
Seshadhri, C. [1 ]
机构
[1] UC Santa Cruz, Santa Cruz, CA 95064 USA
来源
KDD '20: PROCEEDINGS OF THE 26TH ACM SIGKDD INTERNATIONAL CONFERENCE ON KNOWLEDGE DISCOVERY & DATA MINING | 2020年
关键词
Triangle counting; Graph sampling; Random walks; STREAMING ALGORITHMS;
D O I
10.1145/3394486.3403073
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
Triangle counting is a fundamental problem in the analysis of large graphs. There is a rich body of work on this problem, in varying streaming and distributed models, yet all these algorithms require reading the whole input graph. In many scenarios, we do not have access to the whole graph, and can only sample a small portion of the graph (typically through crawling). In such a setting, how can we accurately estimate the triangle count of the graph? We formally study triangle counting in the random walk access model introduced by Dasgupta et al (WWW '14) and Chierichetti et al (WWW '16). We have access to an arbitrary seed vertex of the graph, and can only perform random walks. This model is restrictive in access and captures the challenges of collecting realworld graphs. Even sampling a uniform random vertex is a hard task in this model. Despite these challenges, we design a provable and practical algorithm, TETRIS, for triangle counting in this model. TETRIS is the first provably sublinear algorithm (for most natural parameter settings) that approximates the triangle count in the random walk model, for graphs with low mixing time. Our result builds on recent advances in the theory of sublinear algorithms. The final sample built by TETRIS is a careful mix of random walks and degree-biased sampling of neighborhoods. Empirically, TETRIS accurately counts triangles on a variety of large graphs, getting estimates within 5% relative error by looking at 3% of the number of edges.
引用
收藏
页码:306 / 316
页数:11
相关论文
共 56 条
  • [1] Graph Sample and Hold: A Framework for Big-Graph Analytics
    Ahmed, Nesreen K.
    Duffield, Nick
    Neville, Jennifer
    Kompella, Ramana
    [J]. PROCEEDINGS OF THE 20TH ACM SIGKDD INTERNATIONAL CONFERENCE ON KNOWLEDGE DISCOVERY AND DATA MINING (KDD'14), 2014, : 1446 - 1455
  • [2] Network Sampling: From Static to Streaming Graphs
    Ahmed, Nesreen K.
    Neville, Jennifer
    Kompella, Ramana
    [J]. ACM TRANSACTIONS ON KNOWLEDGE DISCOVERY FROM DATA, 2014, 8 (02)
  • [3] [Anonymous], 2009, KDD09 15 ACM SIGKDD
  • [4] PATRIC: A Parallel Algorithm for Counting Triangles in Massive Networks
    Arifuzzaman, Shaikh
    Khan, Maleq
    Marathe, Madhav
    [J]. PROCEEDINGS OF THE 22ND ACM INTERNATIONAL CONFERENCE ON INFORMATION & KNOWLEDGE MANAGEMENT (CIKM'13), 2013, : 529 - 538
  • [5] Parallel Triangle Counting and Enumeration using Matrix Algebra
    Azad, Ariful
    Buluc, Aydin
    Gilbert, John
    [J]. 2015 IEEE 29TH INTERNATIONAL PARALLEL AND DISTRIBUTED PROCESSING SYMPOSIUM WORKSHOPS, 2015, : 804 - 811
  • [6] Bar-Yossef Z, 2002, SIAM PROC S, P623
  • [7] Becchetti BBCG08 Luca, 2008, P 14 ACM SIGKDD INT, P16
  • [8] How the Degeneracy Helps for Triangle Counting in Graph Streams
    Bera, Suman K.
    Seshadhri, C.
    [J]. PODS'20: PROCEEDINGS OF THE 39TH ACM SIGMOD-SIGACT-SIGAI SYMPOSIUM ON PRINCIPLES OF DATABASE SYSTEMS, 2020, : 457 - 467
  • [9] Towards Tighter Space Bounds for Counting Triangles and Other Substructures in Graph Streams
    Bera, Suman K.
    Chakrabarti, Amit
    [J]. 34TH SYMPOSIUM ON THEORETICAL ASPECTS OF COMPUTER SCIENCE (STACS 2017), 2017, 66
  • [10] Buriol L. S., 2006, Proceedings of the twenty-fifth ACM SIGMOD-SIGACT-SIGART symposium on Principles of database systems, P253