Efficient Mining Algorithms for Large-scale Graphs

Yasunari Kishimoto, Hiroaki Shiokawa, Yasuhiro Fujiwara, Makoto OnizukaNTT 2013

Abstract

This article describes efficient graph mining algorithms designed for analyzing large-scale graph data such as social graphs. Graph mining is a technique to analyze the structure of graphs consisting of nodes and edges. We have developed efficient algorithms for two mining tasks: clustering and computing personalized PageRank, for large-scale graphs.

Introduction

As social networking services (SNS) and web-scale data explode in size, representing information as "graphs" (nodes connected by edges) has become standard. However, traditional graph mining techniques—specifically clustering (finding communities) and Personalized PageRank (finding influential nodes relative to a specific user)—struggle to scale. Conventional algorithms often face a "speed vs. accuracy" trade-off; analyzing a graph with hundreds of millions of users can take six hours or more, making real-time analysis impossible. This paper describes two high-performance algorithms that drastically accelerate graph mining on a massive scale without sacrificing accuracy.

Overview of the graph mining framework and its applications in social networks and web analysis.

Optimized Clustering Algorithm

The proposed clustering method uses a bottom-up approach where connected nodes are merged into clusters. To achieve high performance, three key optimizations were introduced:

  • Degree-based Ordering: The algorithm starts processing nodes with the smallest "degree" (fewer connections). This prevents the "merge cost" from ballooning early in the process.
  • Incremental Aggregation: Once nodes are identified as belonging to the same cluster, they are immediately collapsed into a single "super-node," reducing the total number of elements to process in subsequent iterations.
  • Incremental Pruning: Nodes with only one edge are automatically merged into their neighbor’s cluster, skipping expensive quality-increase calculations.
Clustering divides a graph into groups of correlated nodes, such as communities in a social network.

Efficient Personalized PageRank (PPR)

PPR identifies important nodes relative to a specific starting point. The authors optimized this via:

  • Matrix Sparsity: By permuting the rows and columns of the graph’s adjacency matrix before decomposition, the number of "zero" elements is increased, significantly reducing the number of multiplications required.
  • Top-k Pruning: Instead of calculating exact scores for every node, the algorithm estimates the "upper bound" of potential scores. It stops calculating as soon as it is mathematically certain that no remaining nodes can break into the top-k list.

Experimental Results

The algorithms were evaluated using an SNS friendship dataset of 100 million people and a Wikipedia social graph of Japanese politicians.

  • Speedup: For the 100-million-node SNS graph, processing time dropped from 4–6 hours to just 3 minutes—a 10x to 60x speedup. The PPR algorithm for top-k search is more than 50 times faster than conventional methods.
  • Practical Validation: Using the Wikipedia politician graph, the algorithm successfully clustered politicians by their actual political parties and correctly identified highly influential figures.

Conclusion

The developed algorithms achieve speeds comparable to or better than the "Louvain method" while maintaining high accuracy. These tools, implemented in Java and as Gephi plug-ins, provide powerful capabilities for analyzing modern web-scale datasets.

Summary updated

BibTeX
@inproceedings{kishimoto2013efficient,
  author = {Yasunari Kishimoto and Hiroaki Shiokawa and Yasuhiro Fujiwara and Makoto Onizuka},
  title = {{Efficient Mining Algorithms for Large-scale Graphs}},
  booktitle = {NTT},
  year = {2013},
  doi = {10.53829/ntr201312ra1},
}
Figure