Efficient Algorithms for Densest Subgraph Discovery

Yixiang Fang, Kaiqiang Yu, Reynold Cheng, Laks V. S. Lakshmanan, Xuemin Lin

Abstract

Densest Subgraph Discovery (DSD) is a fundamental task in network analysis, essential for identifying regulatory motifs in DNA, cohesive communities in social networks, and fraud in financial data. Traditional exact solutions rely on maximum flow algorithms, which are prohibitively slow on modern graphs with millions of nodes. This paper introduces a novel "core-based" paradigm that leverages $k$-cores to prune the search space, making the discovery of densest subgraphs up to four orders of magnitude faster while maintaining exact theoretical guarantees. The framework generalizes beyond simple edge density to higher-order patterns, such as cliques and motifs, through the introduction of $(k, \Psi)$-cores.

Problem Statement

The goal of DSD is to find a subset of a graph where connections are most concentrated. While traditional research focused on edge density, modern applications often require finding regions rich in higher-order structures like triangles, 4-cliques, or specific motifs (e.g., diamonds). This shift toward "clique-density" significantly increases computational complexity.

Example graph and various clique/pattern structures used for density discovery.

Existing exact methods often fail on large-scale graphs due to the high cost of max-flow operations. There is a critical need for algorithms that can handle graphs with millions of vertices and hundreds of millions of edges without sacrificing exactness.

Methodology

The authors propose a solution paradigm based on the $(k, \Psi)$-core, a generalization of the $k$-core that accounts for specific patterns ($\Psi$). The key theoretical insight is that the densest subgraph is mathematically guaranteed to be contained within a specific, much smaller $(k, \Psi)$-core where $k$ is related to the optimal density. This allows the algorithm to ignore the vast majority of a large graph.

Several novel algorithms are introduced:

  • CoreExact: An exact algorithm that uses iterative pruning to shrink the graph before running max-flow operations. As the algorithm progresses, the flow network becomes smaller and faster to solve.
  • CoreApp: A high-speed approximation algorithm that finds the $(k_{max}, \Psi)$-core, significantly outperforming standard "peeling" approaches.
  • CorePExact: An extension for "Pattern-aware Densest Subgraph" (PDS) discovery, allowing users to define arbitrary motifs.
Construction of a flow network for exact densest subgraph discovery.

Experimental Evaluation

The researchers evaluated their algorithms on 13 diverse datasets, including real-world large graphs like DBLP, Cit-Patents, and Friendster (the largest containing over 20 million vertices and 298 million edges).

Key Results

  • Massive Speedups: CoreExact proved to be up to 10,000x faster than previous state-of-the-art exact methods. Tasks that previously took five days were completed in minutes.
  • Scalability: While previous methods often timed out or crashed on million-node graphs, the core-based approach handled them efficiently.
  • Approximation Efficiency: CoreApp outperformed existing approximation algorithms by up to two orders of magnitude while maintaining high approximation ratios.
  • Biological Utility: In protein interaction datasets (Yeast), the algorithm successfully identified dense subgraphs corresponding to specific biological functional classes, such as protein synthesis and cell cycle regulation.

Conclusion and Future Work

This paper demonstrates that $k$-core properties can be effectively harnessed to solve the DSD problem at scale. By abstracting the problem to patterns rather than just edges, the authors created a versatile framework for modern network analysis.

Future research directions include addressing the enumeration bottleneck for extremely complex patterns, incorporating size constraints (which is currently NP-hard), and extending these core-based techniques to dynamic or streaming graph data.

Summary updated

BibTeX
@article{fang2019efficient,
  author = {Yixiang Fang and Kaiqiang Yu and Reynold Cheng and Laks V. S. Lakshmanan and Xuemin Lin},
  title = {{Efficient Algorithms for Densest Subgraph Discovery}},
  journal = {Proc. VLDB Endow.},
  year = {2019},
  doi = {10.14778/3342263.3342645},
}
Figure