Skip to main content
QUICK REVIEW

[Paper Review] Triangle counting in dynamic graph streams

Laurent Bulteau, Vincent Froese|arXiv (Cornell University)|Apr 18, 2014
Complex Network Analysis TechniquesPhysics and Astronomy24 references18 citations
TL;DR

This paper presents a novel sampling-based algorithm for estimating triangle counts in dynamic graph streams, where edges can be both inserted and deleted. By combining vertex triple sampling with graph sparsification, the method achieves constant processing time per edge update for graphs with constant transitivity coefficient—making it the first such algorithm for this class, with improved space and time complexity over prior work.

ABSTRACT

Estimating the number of triangles in graph streams using a limited amount of memory has become a popular topic in the last decade. Different variations of the problem have been studied, depending on whether the graph edges are provided in an arbitrary order or as incidence lists. However, with a few exceptions, the algorithms have considered {\em insert-only} streams. We present a new algorithm estimating the number of triangles in {\em dynamic} graph streams where edges can be both inserted and deleted. We show that our algorithm achieves better time and space complexity than previous solutions for various graph classes, for example sparse graphs with a relatively small number of triangles. Also, for graphs with constant transitivity coefficient, a common situation in real graphs, this is the first algorithm achieving constant processing time per edge. The result is achieved by a novel approach combining sampling of vertex triples and sparsification of the input graph. In the course of the analysis of the algorithm we present a lower bound on the number of pairwise independent 2-paths in general graphs which might be of independent interest. At the end of the paper we discuss lower bounds on the space complexity of triangle counting algorithms that make no assumptions on the structure of the graph.

Motivation & Objective

  • To address the open problem of efficient triangle counting in dynamic graph streams, where edges can be both inserted and deleted.
  • To design a streaming algorithm that maintains low space and time complexity, especially for real-world graphs with low to moderate triangle density.
  • To achieve constant processing time per edge update for graphs with constant transitivity coefficient, a common property in real networks.
  • To establish theoretical space complexity lower bounds for triangle counting in dynamic streams, independent of graph structure.

Proposed method

  • The algorithm uses uniform sampling of vertex triples to estimate triangle counts, adapting the approach to dynamic streams where edges may be deleted.
  • It applies a novel sparsification technique to reduce the graph size while preserving triangle estimation accuracy under sampling.
  • The method maintains a compact sketch of the graph that supports efficient insertion and deletion of edges with minimal recomputation.
  • Theoretical analysis combines pairwise independent 2-path counting with probabilistic sampling to bound estimation error.
  • A lower bound is derived via reduction from the 1-way Index problem in communication complexity, showing that space must be at least Ω(m³/T₃²) bits for distinguishing triangle-free graphs from those with T₃ triangles.
  • The algorithm's performance is evaluated on real-world graphs using publicly available datasets, comparing space and time complexity across methods.

Experimental results

Research questions

  • RQ1Can a streaming algorithm achieve constant processing time per edge update for triangle counting in dynamic graph streams?
  • RQ2What is the optimal space complexity for triangle counting in dynamic streams, and how does it depend on graph structure?
  • RQ3Can sampling-based methods be adapted to work reliably in dynamic settings where edges are deleted?
  • RQ4How does the transitivity coefficient influence the efficiency of triangle counting in real-world graphs?
  • RQ5What are the fundamental limits of space usage for triangle counting in dynamic streams, independent of graph structure?

Key findings

  • The proposed algorithm achieves constant processing time per edge update for graphs with constant transitivity coefficient, a key advancement over prior methods.
  • For real-world graphs such as Facebook, DBLP, and Astro-Ph, the algorithm's space usage is significantly lower than previous approaches, with the lowest space usage in 7 out of 13 datasets in Table 4.
  • The algorithm's space complexity is O(mn/T₃) in the worst case, but improves dramatically when the transitivity coefficient is constant, achieving near-optimal performance.
  • The theoretical lower bound of Ω(m³/T₃²) bits for one-pass triangle counting in dynamic streams matches the upper bound for certain graph classes, indicating tightness of the bound.
  • The algorithm outperforms existing methods in terms of both space and time complexity for sparse graphs with relatively few triangles, particularly when T₃ is large relative to m.
  • The analysis reveals that assumptions on graph structure—especially transitivity—are essential for achieving efficient triangle counting, as no efficient algorithm exists without such assumptions in the general case.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.