Skip to main content
QUICK REVIEW

[Paper Review] A new algorithm for graph center computation and graph partitioning according to the distance to the center

Frédéric Protin, Proissl, Claudius|arXiv (Cornell University)|Oct 5, 2019
Advanced Graph Theory ResearchComputer Science4 references1 citations
TL;DR

This paper presents a novel, parallelizable algorithm for computing the center of a graph and partitioning nodes by their distance to the center, using iterative matrix powers of a modified adjacency matrix. The method outperforms Floyd-Warshall in most graph types, especially dense or shallow ones, with speedups up to 10x in experiments, due to optimizations that track only non-zero entries and exploit matrix power monotonicity.

ABSTRACT

The radius of a graph is an important structural parameter which plays a key role in social network analysis and related applications. It measures the minimum shortest path distance that is required to reach all nodes in the graph from a single node. A node from which all other nodes are within a distance equal to the radius is called a center of the graph. In a graph with n nodes and m edges, the center and the radius can be determined in Õ(nm) by computing shortest path distances between all pairs of nodes. Fine-grained complexity results suggest that asymptotically faster algorithms are unlikely to exist. In this paper, we describe a novel randomized algorithm for exact radius computation in weighted digraphs with an expected running time in Õ(d³m) where d is the so-called combinatorial dimension. Our methodology is inspired by Clarkson’s algorithm for LP-type problems. The value of d denotes the size of a basis, which is a smallest subset of nodes which enforce the same radius as the whole node set. While we show that there exist graphs with d ∈ Θ(n), our empirical analysis reveals that even large real-world graphs have small combinatorial dimension. This allows us to compute the radius in near-linear time on such instances. The significantly improved scalability can be clearly observed in our experimental evaluation on a diverse set of benchmark graphs.

Motivation & Objective

  • To develop a faster, parallelizable algorithm for computing the graph center and node partitioning by distance to the center.
  • To address limitations of traditional algorithms like Floyd-Warshall and Bellman-Ford, which compute excessive information and are slower for this specific task.
  • To enable efficient visualization and analysis of graphs by organizing nodes into hierarchical levels based on their eccentricity.
  • To optimize matrix power computation by tracking only non-zero entries and leveraging structural properties of graph connectivity.

Proposed method

  • The algorithm uses a modified adjacency matrix ˜A, where diagonal entries are set to 1, to represent self-loops and enable path counting up to length n.
  • It computes successive powers ˜An, where (˜An)ij counts the number of paths of length at most n from i to j.
  • The center nodes C0 are identified as those rows in ˜An0 that are fully non-zero, where n0 is the smallest n such that at least one row is filled.
  • Nodes are partitioned into levels Ck based on when they first achieve full connectivity: Ck contains nodes that become fully connected at ˜An0+k but not earlier.
  • Optimizations include replacing non-zero coefficients with 1 (thresholding) to reduce computation, and skipping redundant entries using monotonicity of path counts.
  • An improved method uses iterative matrix multiplication with early stopping and row testing to efficiently detect when a row becomes fully non-zero.

Experimental results

Research questions

  • RQ1Can a matrix power-based approach compute the graph center and node hierarchy more efficiently than Floyd-Warshall for a wide range of graphs?
  • RQ2How does the performance of the proposed algorithm scale with graph density and depth compared to traditional algorithms?
  • RQ3To what extent can optimizations like thresholding and early stopping reduce computation time without affecting correctness?
  • RQ4Does the algorithm remain efficient on sparse or linear graphs where Floyd-Warshall is known to be optimal?
  • RQ5Can the algorithm be naturally parallelized, and does this enable significant speedups in practice?

Key findings

  • The proposed algorithm outperforms Floyd-Warshall in most tested graph configurations, with speedups of up to 10x on dense graphs.
  • For graphs with depth P=13 and N=500, the new algorithm achieved a median runtime of 52 seconds, compared to 198 seconds for Floyd-Warshall.
  • On shallow graphs (P=2), the new algorithm was significantly faster, with a 100x speedup in one case (100s vs 1s) when N=400.
  • The algorithm’s performance improves with increasing graph connectivity, as expected from its design based on rapid propagation of non-zero entries.
  • Improvement 3, which uses a binary search-like approach to estimate n0, provides substantial speedups on deep graphs, though it slightly slows down shallow ones.
  • The algorithm is inherently parallelizable, as each matrix multiplication and row check can be distributed across multiple processors.

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.