Skip to main content
QUICK REVIEW

[Paper Review] An O(m) Algorithm for Cores Decomposition of Networks

Vladimir Batagelj, Matjaž Zaveršnik|arXiv (Cornell University)|Oct 25, 2003
Data Visualization and AnalyticsComputer Science4 references621 citations
TL;DR

This paper presents an O(m) algorithm for computing the k-core decomposition of networks, where m is the number of edges. By leveraging degree-based bucket sorting and iterative vertex removal, the method efficiently determines each vertex's core number, enabling rapid analysis of network cohesion and hierarchical structure in linear time.

ABSTRACT

The structure of large networks can be revealed by partitioning them to smaller parts, which are easier to handle. One of such decompositions is based on $k$--cores, proposed in 1983 by Seidman. In the paper an efficient, $O(m)$, $m$ is the number of lines, algorithm for determining the cores decomposition of a given network is presented.

Motivation & Objective

  • To develop a highly efficient algorithm for computing k-core decomposition in large networks.
  • To address the computational inefficiency of existing methods that are quadratic or NP-hard for related network cohesion concepts.
  • To provide a practical, scalable solution for identifying cohesive subgroups in real-world networks.
  • To enable fast analysis of network structure by leveraging core numbers as a structural metric.
  • To support the development of network analysis tools by providing a foundational, efficient algorithm.

Proposed method

  • The algorithm uses bucket sorting based on vertex degrees to organize vertices by their degree values.
  • It processes vertices in increasing order of degree, updating core numbers and adjusting degrees of neighbors.
  • For each vertex, it reduces the degree of higher-degree neighbors and repositions them in the degree buckets to maintain order.
  • The core number of a vertex is initialized as its initial degree and updated through iterative neighbor processing.
  • The algorithm maintains three arrays: one for vertex positions by degree (vert), one for degree-to-position mapping (pos), and one for bin starting positions (bin).
  • The use of dynamic repositioning in the degree-ordered list ensures that only vertices with higher degrees are processed after their neighbors, maintaining correctness.

Experimental results

Research questions

  • RQ1Can k-core decomposition be computed in linear time O(m) for large networks?
  • RQ2How can the core number of each vertex be efficiently determined without expensive recomputation?
  • RQ3What is the impact of degree-based ordering and bucket sorting on the performance of core decomposition?
  • RQ4Can the algorithm be adapted for directed graphs with different degree definitions (in-degree, out-degree, or sum)?
  • RQ5How effective is the algorithm in practice on real-world sparse networks with millions of edges?

Key findings

  • The algorithm runs in O(m) time, making it optimal for large-scale network analysis.
  • The implementation in the Pajek software tool computes core decomposition for a 52,652-vertex, 89,038-edge network in just 0.01 seconds.
  • The 25-core consists of 26 isolated vertices (a’s, b’s, ..., z’s), forming a complete subgraph where each vertex has at least 25 neighbors within the core.
  • The 16-core adds 34 vertices (e.g., an, on, ban, don), forming a subgraph with two 17-cliques and additional edges, demonstrating structural cohesion.
  • The 15-core includes 16 new vertices (e.g., ow, bow, cow), forming another clique due to shared first letters, highlighting the role of core numbers in revealing linguistic patterns.
  • Core decomposition reveals a nested hierarchy: higher k-cores are subsets of lower k-cores, and vertices with core number 0 are isolated.

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.