Skip to main content
QUICK REVIEW

[Paper Review] Distributed-Memory Parallel Algorithms for Counting and Listing Triangles in Big Graphs

Shaikh Arifuzzaman, Maleq Khan|arXiv (Cornell University)|Jun 16, 2017
Complex Network Analysis TechniquesPhysics and Astronomy29 references4 citations
TL;DR

This paper presents two MPI-based distributed-memory parallel algorithms for exact triangle counting and clustering coefficient computation in massive graphs with up to 10 billion edges. The first uses overlapping partitioning and load balancing for high performance, achieving exact triangle counting in under 16 minutes; the second uses non-overlapping partitions for space efficiency, with both algorithms enabling scalable listing of triangles and support for approximation via edge sparsification.

ABSTRACT

Big graphs (networks) arising in numerous application areas pose significant challenges for graph analysts as these graphs grow to billions of nodes and edges and are prohibitively large to fit in the main memory. Finding the number of triangles in a graph is an important problem in the mining and analysis of graphs. In this paper, we present two efficient MPI-based distributed memory parallel algorithms for counting triangles in big graphs. The first algorithm employs overlapping partitioning and efficient load balancing schemes to provide a very fast parallel algorithm. The algorithm scales well to networks with billions of nodes and can compute the exact number of triangles in a network with 10 billion edges in 16 minutes. The second algorithm divides the network into non-overlapping partitions leading to a space-efficient algorithm. Our results on both artificial and real-world networks demonstrate a significant space saving with this algorithm. We also present a novel approach that reduces communication cost drastically leading the algorithm to both a space- and runtime-efficient algorithm. Further, we demonstrate how our algorithms can be used to list all triangles in a graph and compute clustering coefficients of nodes. Our algorithm can also be adapted to a parallel approximation algorithm using an edge sparsification method.

Motivation & Objective

  • Address the challenge of analyzing massive graphs—especially those with billions of edges—that exceed main memory capacity on single nodes.
  • Develop exact, scalable, and efficient parallel algorithms for triangle counting and clustering coefficient computation in distributed-memory systems.
  • Achieve high performance through effective load balancing and reduced communication costs in distributed settings.
  • Enable both exact computation and approximation via sparsification for handling even larger networks.
  • Extend the algorithms to list all triangles and compute node-level clustering coefficients for detailed network analysis.

Proposed method

  • Design an overlapping partitioning scheme with dynamic load balancing to minimize idle time and maximize parallel efficiency in triangle counting.
  • Implement a non-overlapping partitioning strategy to reduce memory footprint and improve space efficiency for large-scale graphs.
  • Integrate a novel communication-reduction technique to minimize inter-processor data transfer, enhancing runtime performance.
  • Adapt the DOULION sparsification method within the parallel framework to support approximate triangle counting with improved accuracy.
  • Extend the core triangle counting algorithm to list all triangles and compute local clustering coefficients by aggregating per-node triangle counts.
  • Use MPI-based message-passing for distributed-memory execution, ensuring portability and scalability across high-performance computing clusters.

Experimental results

Research questions

  • RQ1Can overlapping partitioning and load balancing in a distributed-memory setting achieve high scalability and low runtime for exact triangle counting in billion-edge graphs?
  • RQ2How does non-overlapping partitioning compare to overlapping partitioning in terms of space efficiency and performance for triangle counting?
  • RQ3To what extent can communication cost be reduced in distributed triangle counting without sacrificing accuracy?
  • RQ4Can the proposed algorithms be extended to list all triangles and compute node-level clustering coefficients efficiently?
  • RQ5How effective is the integration of edge sparsification with distributed triangle counting for approximating triangle counts in ultra-large graphs?

Key findings

  • The overlapping partitioning algorithm computed the exact number of triangles in a 10-billion-edge graph in under 16 minutes on a distributed system.
  • The non-overlapping partitioning algorithm achieved significant space savings compared to overlapping schemes, particularly beneficial for memory-constrained environments.
  • The communication-reduction technique led to both improved runtime and reduced inter-processor data transfer, enhancing overall efficiency.
  • The algorithms demonstrated strong and weak scaling across real-world networks such as LiveJournal and Twitter, with high performance on both synthetic and real graphs.
  • The integration of DOULION sparsification improved approximation accuracy in the parallel setting, enabling scalable analysis of even larger graphs.
  • The extended algorithms successfully listed all triangles and computed local clustering coefficients, enabling fine-grained network analysis.

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.