Finding the diameter in real-world graphs experimentally turning a lower bound into an upper bound

  • Authors:
  • Pierluigi Crescenzi;Roberto Grossi;Claudio Imbrenda;Leonardo Lanzi;Andrea Marino

  • Affiliations:
  • Dipartimento di Sistemi e Informatica, Università di Firenze;Dipartimento di Informatica, Università di Pisa;Dipartimento di Informatica, Università di Pisa;Dipartimento di Sistemi e Informatica, Università di Firenze;Dipartimento di Sistemi e Informatica, Università di Firenze

  • Venue:
  • ESA'10 Proceedings of the 18th annual European conference on Algorithms: Part I
  • Year:
  • 2010

Quantified Score

Hi-index 0.00

Visualization

Abstract

The diameter of an unweighted graph is the maximum pairwise distance among its connected vertices. It is one of the main measures in real-world graphs and complex networks. The double sweep is a simple method to find a lower bound for the diameter. It chooses a random vertex and performs two breadth-first searches (BFSes), returning the maximum length among the shortest paths thus found. We propose an algorithm called fringe, which uses few BFSes to find a matching upper bound for almost all the graphs in our dataset of 44 real-world graphs. In the few graphs it cannot, we perform an exhaustive search of the diameter using a cluster of machines for a total of 40 cores. In all cases, the diameter is surprisingly equal to the lower bound found after very few executions of the double sweep method. The lesson learned is that the latter can be used to find the diameter of real-world graphs in many more cases than expected, and our fringe algorithm can quickly validate this finding for most of them.