CoCoS: Fast and Accurate Distributed Triangle Counting in Graph Streams

Kijung Shin, Euiwoong Lee, Jinoh Oh, Mohammad Hammoud, Christos Faloutsos
2/12/2018
cs.DBcs.DCcs.DS

Official code: kijungs/cocos (3 stars, C++, Apache-2.0, last commit 2024-10-30).

Abstract

Given a graph stream, how can we estimate the number of triangles in it using multiple machines with limited storage? Specifically, how should edges be processed and sampled across the machines for rapid and accurate estimation?

Show full abstract

The count of triangles (i.e., cliques of size three) has proven useful in numerous applications, including anomaly detection, community detection, and link recommendation. For triangle counting in large and dynamic graphs, recent work has focused largely on streaming algorithms and distributed algorithms but little on their combinations for "the best of both worlds". In this work, we propose CoCoS, a fast and accurate distributed streaming algorithm for estimating the counts of global triangles (i.e., all triangles) and local triangles incident to each node. Making one pass over the input stream, COCOS carefully processes and stores the edges across multiple machines so that the redundant use of computational and storage resources is minimized. Compared to baselines, CoCoS is (a) Accurate: giving up to 39X smaller estimation error, (b) Fast: up to 10.4X faster, scaling linearly with the size of the input stream, and (c) Theoretically sound: yielding unbiased estimates.

View on arXivView PDF

Code Implementations(1)

kijungs/cocosOfficial100%
Apache-2.0

CoCoS: Fast and Accurate Distributed Triangle Counting in Graph Streams (TKDD'21)

30C++, MakefileDec 6, 20202 years agoApache-2.0

Similar Papers

Cite this paper

@article{shin2018cocos,
  title  = {CoCoS: Fast and Accurate Distributed Triangle Counting in Graph Streams},
  author = {Kijung Shin and Euiwoong Lee and Jinoh Oh and Mohammad Hammoud and Christos Faloutsos},
  year   = {2018},
  eprint = {1802.04249},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1802.04249}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1802.04249.svg)](https://codeofpaper.com/paper/1802.04249)

Discussion