Skip to main content
QUICK REVIEW

[Paper Review] A Streaming Algorithm for Graph Clustering

Alexandre Hollocou, Julien Maudet|arXiv (Cornell University)|Dec 9, 2017
Complex Network Analysis TechniquesPhysics and Astronomy3 citations
TL;DR

This paper presents a streaming graph clustering algorithm that processes edges in a single pass with only three integers per node, achieving linear time and space complexity. It outperforms state-of-the-art methods by running over ten times faster on billion-edge graphs while maintaining or improving clustering quality, particularly on large-scale networks like Friendster and Orkut.

ABSTRACT

We introduce a novel algorithm to perform graph clustering in the edge streaming setting. In this model, the graph is presented as a sequence of edges that can be processed strictly once. Our streaming algorithm has an extremely low memory footprint as it stores only three integers per node and does not keep any edge in memory. We provide a theoretical justification of the design of the algorithm based on the modularity function, which is a usual metric to evaluate the quality of a graph partition. We perform experiments on massive real-life graphs ranging from one million to more than one billion edges and we show that this new algorithm runs more than ten times faster than existing algorithms and leads to similar or better detection scores on the largest graphs.

Motivation & Objective

  • Address the challenge of clustering massive graphs that exceed main memory capacity in real-world applications such as social networks and web graphs.
  • Design a streaming algorithm that processes edges exactly once without storing the entire graph, enabling scalability to billion-edge networks.
  • Develop a lightweight clustering method with minimal memory footprint—only three integers per node—while maintaining high-quality community detection.
  • Theoretical justification of the algorithm's design using the modularity function, ensuring that each edge update increases modularity under certain assumptions.
  • Demonstrate that the algorithm achieves better or comparable clustering quality than existing methods on large graphs, despite its extreme efficiency.

Proposed method

  • The algorithm processes edges in an insert-only streaming fashion, where each edge is examined exactly once without storing the full graph.
  • For each node, it maintains three integers: current community index, current degree (number of processed edges), and community volume (sum of degrees in the community).
  • When a new edge (i,j) arrives, the algorithm decides whether to merge communities i and j based on a threshold parameter $v_{\mathrm{max}}$ and the volumes of the communities of i and j.
  • The decision rule is theoretically justified using the modularity function, ensuring that merging increases modularity under specific assumptions.
  • The algorithm uses a minimal sketch—only three integers per node—making it highly memory-efficient compared to storing the entire edge list.
  • The method is deterministic and requires only one tunable parameter, $v_{\mathrm{max}}$, which controls the sensitivity of community merging.

Experimental results

Research questions

  • RQ1Can a graph clustering algorithm be designed to process massive graphs in a single pass with minimal memory usage?
  • RQ2How can the modularity function be adapted to the streaming setting to ensure that community merging improves clustering quality?
  • RQ3What is the performance trade-off between speed and clustering quality when using a streaming algorithm on billion-edge graphs?
  • RQ4Can a streaming algorithm achieve better or comparable detection scores than state-of-the-art algorithms like Louvain and SCD on very large graphs?
  • RQ5How does the algorithm scale in terms of execution time and memory consumption when processing graphs with over one billion edges?

Key findings

  • The algorithm processes the Friendster graph (1.8 billion edges) in 241 seconds, which is only 59 seconds slower than the Unix 'cat' command that reads the edge list, indicating that the algorithm's overhead is minimal.
  • On the Friendster dataset, the algorithm runs over ten times faster than Louvain and SCD, which fail to complete on this scale.
  • Memory consumption is drastically reduced: the algorithm uses only 1.6 GB on Friendster, compared to 28.9 GB required to store the edge list alone.
  • On large graphs like LiveJournal, Orkut, and Friendster, the algorithm achieves higher F1-scores than SCD and Louvain, with 0.28 F1 on LiveJournal and 0.44 on Orkut.
  • The algorithm's NMI scores are competitive on smaller graphs and significantly better on large graphs, with 0.24 NMI on Orkut and 0.19 F1 on Friendster, where other algorithms fail to compute NMI.
  • Theoretical analysis shows that under certain assumptions, each edge processing step increases modularity, justifying the algorithm's design choice.

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.