Distance-generalized Core Decomposition

Francesco Bonchi, Arijit Khan, Lorenzo SeveriniSIGMOD 2019 · DOI

Abstract

The $k$-core of a graph is defined as the maximal subgraph in which every vertex is connected to at least $k$ other vertices within that subgraph. In this work we introduce a distance-based generalization of the notion of $k$-core, which we refer to as the $(k,h)$-core, i.e., the maximal subgraph in which every vertex has at least $k$ other vertices at distance $\leq h$ within that subgraph. We study the properties of the $(k,h)$-core showing that it preserves many of the nice features of the classic core decomposition (e.g., its connection with the notion of distance-generalized chromatic number) and it preserves its usefulness to speed-up or approximate distance-generalized notions of dense structures, such as $h$-club. Computing the distance-generalized core decomposition over large networks is intrinsically complex. However, by exploiting clever upper and lower bounds we can partition the computation in a set of totally independent subcomputations, opening the door to top-down exploration and to multithreading, and thus achieving an efficient algorithm.

Introduction

In network analysis, identifying dense subgraphs is a fundamental task for understanding community structure, biological pathways, and information flow. The classic $k$-core—defined as the maximal subgraph where every vertex has at least $k$ immediate neighbors—has long been the standard tool for this purpose due to its computational efficiency. However, the $k$-core is inherently limited by its focus on direct, distance-1 connections. In many real-world systems, meaningful interactions occur across multiple "hops."

This research introduces the $(k, h)$-core, a distance-generalized core decomposition that identifies dense regions where every node is within distance $h$ of at least $k$ other nodes within the subgraph. While conceptually powerful, this generalization introduces significant computational hurdles that this paper systematically addresses.

The Computational Challenge

The primary difficulty in computing a $(k, h)$-core, as opposed to a standard $k$-core, lies in the dynamic nature of shortest paths. In a standard $k$-core algorithm, removing a node only affects the degree of its immediate neighbors. In a $(k, h)$-core, removing a single node can alter the shortest-path distances between many other nodes in the graph. This necessitates frequent and computationally expensive Breadth-First Search (BFS) re-computations to update the "$h$-degree" of remaining nodes.

Furthermore, a common intuition is to simply compute a standard $k$-core on a "power graph" (where edges exist between all nodes within distance $h$). The authors prove this intuition is incorrect: the $k$-core of a power graph serves only as an upper bound, not the true $(k, h)$-core, because the distances must be maintained within the induced subgraph.

Algorithmic Innovations

To make $(k, h)$-core decomposition feasible for massive networks, the authors propose three algorithmic frameworks:

  1. $h$-BZ (Baseline): An extension of the classic Batagelj and Zaveršnik peeling algorithm. It iteratively removes nodes with the lowest $h$-degree, though it suffers from high computational overhead due to constant distance re-evaluations.
  2. $h$-LB (Lower Bound): This optimization utilizes a mathematical shortcut: a node’s core index is at least its degree within distance $\lfloor h/2 \rfloor$. By establishing this lower bound, the algorithm avoids many unnecessary $h$-degree re-computations, as nodes within this "safe zone" are guaranteed to meet the criteria.
  3. $h$-LB+UB (Upper Bound): This is the most advanced approach. It uses the $k$-core of the power graph as an upper bound to partition the graph into independent sub-computations. This allows for a top-down exploration strategy and enables multi-threading, where different core levels can be processed simultaneously across multiple CPU cores.

Experimental Evaluation

The researchers evaluated these algorithms across 13 diverse datasets, ranging from biological networks (coli, cele) and collaboration graphs (caHe, jazz) to massive social networks like LiveJournal (68.9 million edges).

Key Findings

  • Efficiency: The $h$-LB+UB algorithm consistently achieved up to a 10x speedup over the baseline on dense graphs.
  • Scalability: The team successfully processed the LiveJournal dataset in approximately one hour using 52 threads—a feat previously impossible for distance-generalized decompositions.
  • Application in $h$-Clubs: The $(k, h)$-core proved to be an excellent pre-processing step for finding maximum $h$-clubs (an NP-hard problem). By pruning the search space, the method significantly accelerated state-of-the-art linear programming solvers.
  • Landmark Selection: Nodes residing in high $(k, h)$-cores were found to be superior "landmarks" for estimating shortest paths across a network, outperforming traditional metrics like betweenness or closeness centrality in terms of approximation accuracy.

Conclusion and Future Work

The $(k, h)$-core provides a more nuanced "structural spectrum" of a graph than the classic $k$-core. A node might have a low core index at $h=1$ but a very high one at $h=2$, identifying it as a critical bridge to a dense community. While the current algorithms are highly efficient for $h$ values between 2 and 5, future work aims to develop "all-in-one" algorithms capable of computing multiple $h$ values simultaneously and further exploring the use of core indices as structural fingerprints for nodes.

Summary updated

BibTeX
@inproceedings{bonchi2019distance,
  author = {Francesco Bonchi and Arijit Khan and Lorenzo Severini},
  title = {{Distance-generalized Core Decomposition}},
  booktitle = {SIGMOD},
  year = {2019},
  doi = {10.1145/3299869.3324962},
}
Figure