Scalable online betweenness centrality in evolving graphs

Nicolas Kourtellis, Gianmarco De Francisci Morales, Francesco Bonchi

TL;DR

Computing betweenness centrality—a key metric for identifying influential nodes and edges in a network—is notoriously slow and historically impractical for dynamic, fast-changing graphs. This paper introduces the first truly scalable, online algorithm that incrementally updates both vertex and edge centrality as edges are added or removed. By eliminating memory bottlenecks and leveraging parallel MapReduce architectures, the framework scales to graphs with millions of nodes, keeping metrics up-to-date in real time.

What Problem Does This Paper Address?

Betweenness centrality (BC) measures how often a node or edge falls on the shortest path between all pairs of nodes in a graph. It is highly valuable for community detection, routing, and finding key influencers. However, computing it exactly using the standard approach (Brandes' algorithm) takes $O(nm)$ time, where $n$ is the number of vertices and $m$ is the number of edges.

This computational burden becomes a nightmare for real-world networks like Facebook or the Web, which are dynamic and constantly evolving. Recomputing BC from scratch every time a user adds a friend or deletes a post is impossible. While prior research attempted to solve this incrementally, existing solutions suffer from severe limitations: they typically only track vertex centrality (ignoring edges), only handle edge additions (failing at removals), or suffer from massive memory overheads that prevent them from scaling beyond a few thousand nodes.

Methods

The authors present a scalable, incremental framework designed to process a continuous stream of edge additions and removals. Their approach introduces three main innovations:

  1. Memory Optimization via Predecessor Elimination: Standard implementations maintain a "predecessors list" for every node to backtrack through shortest paths. Because these lists vary in length, they create massive memory management overhead. The authors dropped these lists entirely. Instead, they scan neighbor states and use distance levels to reconstruct paths on the fly. This bounds the space complexity to a predictable $O(n^2)$ and allows data structures to be mapped directly to disk in a compact binary format.
  2. Pivot-Based Structural Updates: When an edge change alters the graph's topology by more than one level, the algorithm uses "pivots"—nodes whose distances don't change but whose neighbors' distances do—to cleanly bound the boundary of the structural change. This prevents the algorithm from re-traversing unaffected parts of the graph.
  3. Parallel MapReduce Architecture: The framework naturally parallelizes because the shortest-path Directed Acyclic Graphs (SPdags) for different source nodes can be computed independently. The authors implemented an out-of-core version on Hadoop, distributing the graph's sources across multiple machines to achieve near-linear speedups.

The structural adjustments handled by the algorithm during edge additions and removals are illustrated below:

Shortest path DAG changes during edge updates
Edge configurations before and after updates

Datasets

The algorithm was evaluated on both synthetic and real-world datasets:

  • Synthetic Graphs: Ranging from 1,000 to 1,000,000 vertices, generated to mimic the power-law degree distributions and high clustering of real social networks.
  • Real-World Graphs (from the KONECT collection): Included wikielections, slashdot, facebook, epinions, dblp, and amazon.

Crucially, the largest real-world graph evaluated (amazon) contained over 2.2 million vertices and 5.7 million edges—representing an evaluation dataset two orders of magnitude larger than those used in any previous incremental BC study. The authors also preserved the real-world timestamps of edge arrivals to simulate a true online streaming environment.

Key Insights and Ideas

  • Less is More: Counterintuitively, removing the predecessors list to save memory actually speeded up the algorithm in practice. The CPU overhead of creating, modifying, and maintaining variable-length lists in memory was higher than the cost of scanning a node's neighbors on the fly.
  • The Asymmetry of Removals: Edge removals are fundamentally harder to process than additions. While an addition simply introduces a potential shortcut, a removal can destroy existing shortest paths, forcing the algorithm to search for alternative routes. The pivot-based approach elegantly handles this asymmetry.
  • Topology Dictates Performance: The efficiency of incremental updates depends heavily on graph topology. Networks with high clustering coefficients (like Facebook) experience fewer cascading structural changes per edge update, yielding massive speedups. Conversely, graphs with low clustering and high diameters (like Amazon) require more extensive path recalculations.

Key Results

  • Substantial Speedups: Compared to recomputing from scratch using Brandes' algorithm, the proposed framework achieved median speedups ranging from 4x on difficult graphs (Amazon) up to 102x on edge removals in social graphs (Facebook).
  • True Online Performance: When scaled across a Hadoop cluster, the system successfully achieved "online" status for massive streaming graphs. For example, using 100 mappers on the Facebook dataset, the algorithm updated centrality metrics fast enough to keep up with the real-world inter-arrival time for 98.99% of incoming edges.
  • Application Acceleration: The authors demonstrated that their framework can accelerate the classic Girvan-Newman community detection algorithm (which iteratively removes high-betweenness edges) by an order of magnitude.

Limitations and Future Work

Despite the out-of-core and parallel optimizations, the underlying space complexity remains quadratic ($O(n^2)$). For a graph with 1 million nodes, storing the required distance, path count, and dependency arrays requires roughly 11 terabytes of storage. At this scale, disk I/O inevitably becomes the primary performance bottleneck.

To address this, the authors note that future work will focus on exploring graph compression schemes to minimize the disk footprint and reduce disk access overhead. They also plan to conduct a deeper theoretical analysis of how specific graph topologies impact the computational cost of incremental updates.

Summary updated

BibTeX
@inproceedings{kourtellis2016scalable,
  author = {Nicolas Kourtellis and Gianmarco De Francisci Morales and Francesco Bonchi},
  title = {{Scalable online betweenness centrality in evolving graphs}},
  booktitle = {ICDE},
  year = {2016},
  doi = {10.1109/icde.2016.7498421},
}
Figure