Fast diameter and radius BFS-based computation in (weakly connected) real-world graphs: With an application to the six degrees of separation games

In this paper, we propose a new algorithm that computes the radius and the diameter of a weakly connected digraph G = ( V , E ) , by finding bounds through heuristics and improving them until they are validated. Although the worst-case running time is O ( | V | | E | ) , we will experimentally show that it performs much better in the case of real-world networks, finding the radius and diameter values after 10-100 BFSs instead of | V | BFSs (independently of the value of | V | ), and thus having running time O ( | E | ) in practice. As far as we know, this is the first algorithm able to compute the diameter of weakly connected digraphs, apart from the naive algorithm, which runs in time ? ( | V | | E | ) performing a BFS from each node. In the particular cases of strongly connected directed or connected undirected graphs, we will compare our algorithm with known approaches by performing experiments on a dataset composed by several real-world networks of different kinds. These experiments will show that, despite its generality, the new algorithm outperforms all previous methods, both in the radius and in the diameter computation, both in the directed and in the undirected case, both in average running time and in robustness. Finally, as an application example, we will use the new algorithm to determine the solvability over time of the "Six Degrees of Kevin Bacon" game, and of the "Six Degrees of Wikipedia" game. As a consequence, we will compute for the first time the exact value of the radius and the diameter of the whole Wikipedia digraph.

[1]  Walter A. Kosters,et al.  Computing the Eccentricity Distribution of Large Graphs , 2013, Algorithms.

[2]  Sharon L. Milgram,et al.  The Small World Problem , 1967 .

[3]  Christos Faloutsos,et al.  Graph evolution: Densification and shrinking diameters , 2006, TKDD.

[4]  Feodor F. Dragan,et al.  Diameter determination on restricted graph families , 1998, Discret. Appl. Math..

[5]  G. Handler Minimax Location of a Facility in an Undirected Tree Graph , 1973 .

[6]  Andrea Marino Algorithms for biological graphs: analysis and enumeration , 2014, ICTCS.

[7]  Gregory Gutin,et al.  Digraphs - theory, algorithms and applications , 2002 .

[8]  Russell Impagliazzo,et al.  Which problems have strongly exponential complexity? , 1998, Proceedings 39th Annual Symposium on Foundations of Computer Science (Cat. No.98CB36280).

[9]  Alex Bavelas,et al.  Communication Patterns in Task‐Oriented Groups , 1950 .

[10]  Matthieu Latapy,et al.  Fast computation of empirically tight bounds for the diameter of massive graphs , 2009, JEAL.

[11]  Walter A. Kosters,et al.  Determining the diameter of small world networks , 2011, CIKM '11.

[12]  Ulrik Brandes,et al.  Network Analysis: Methodological Foundations , 2010 .

[13]  Robert E. Tarjan,et al.  Better Approximation Algorithms for the Graph Diameter , 2014, SODA.

[14]  D. West Introduction to Graph Theory , 1995 .

[15]  Ulrik Brandes,et al.  Network Analysis: Methodological Foundations (Lecture Notes in Computer Science) , 2005 .

[16]  Liam Roditty,et al.  Fast approximation algorithms for the diameter and radius of sparse graphs , 2013, STOC '13.

[17]  Andrei Z. Broder,et al.  Graph structure in the Web , 2000, Comput. Networks.

[18]  Roberto Grossi,et al.  On Computing the Diameter of Real-World Directed (Weighted) Graphs , 2012, SEA.

[19]  Jens Lehmann,et al.  DBpedia: A Nucleus for a Web of Open Data , 2007, ISWC/ASWC.

[20]  Krishna P. Gummadi,et al.  Measurement and analysis of online social networks , 2007, IMC '07.

[21]  Piotr Indyk,et al.  Fast estimation of diameter and shortest paths (without matrix multiplication) , 1996, SODA '96.

[22]  Feodor F. Dragan,et al.  On the power of BFS to determine a graph's diameter , 2003, Networks.

[23]  Frank Harary,et al.  Graph Theory , 2016 .

[24]  Mark E. J. Newman,et al.  The Structure and Function of Complex Networks , 2003, SIAM Rev..

[25]  Andrea Marino,et al.  On the Solvability of the Six Degrees of Kevin Bacon Game - A Faster Graph Diameter and Radius Computation Method , 2014, FUN.

[26]  Boaz Ben-Moshe,et al.  Efficient algorithms for center problems in cactus networks , 2007, Theor. Comput. Sci..

[27]  David Bordwell,et al.  Film History: An Introduction , 1994 .

[28]  Frank W. Takes Algorithms for analyzing and mining real-world graphs , 2014 .

[29]  Roberto Grossi,et al.  On computing the diameter of real-world undirected graphs , 2013, Theor. Comput. Sci..

[30]  Jérôme Kunegis,et al.  KONECT: the Koblenz network collection , 2013, WWW.

[31]  M. Gurevitch,et al.  The social structure of acquaintanceship networks , 1961 .

[32]  Virginia Vassilevska Williams,et al.  Multiplying matrices faster than coppersmith-winograd , 2012, STOC '12.

[33]  V. Latora,et al.  A measure of centrality based on network efficiency , 2004, cond-mat/0402050.