Finding the Diameter in Real-World Graphs
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.
KeywordsCollaboration Network Input Graph Connected Vertex Default Case Patent Citation Network
Unable to display preview. Download preview PDF.
- 2.Boldi, P., Vigna, S.: Webgraph (2001), http://webgraph.dsi.unimi.it/
- 3.Boldi, P., Vigna, S.: The WebGraph framework I: Compression techniques. In: Proc. of the 13th International World Wide Web Conference, pp. 595–601 (2004)Google Scholar
- 5.Complexnetworks Team: Complex networks and real-world graphs (2008), http://complexnetworks.fr/
- 7.Faloutsos, C.: Graph mining: Patterns, generators and tools. In: Combinatorial Pattern Matching, p. 274 (2009)Google Scholar
- 8.Handler, G.: Minimax location of a facility in an undirected tree graph. Transportation Science 7(287–293) (1973)Google Scholar
- 9.IMDB: The internet movie database (1990), http://www.imdb.com/
- 10.Leskovec, J.: Stanford Network Analysis Package (SNAP) Website (2009), http://snap.stanford.edu
- 11.Library, S.L.D.: Citeseer Website (1997), http://citeseer.ist.psu.edu/citeseer.html
- 12.Magnien, C., Latapy, M., Habib, M.: Fast computation of empirically tight bounds for the diameter of massive graphs. J. Exp. Algorithmics 13 (2009)Google Scholar
- 13.Massa, P., Souren, K.: Trustlet Website (2007), http://www.trustlet.org
- 14.Mehlhorn, K., Meyer, U.: External-memory breadth-first search with sublinear i/o. In: Proceedings of the 10th Annual European Symposium on Algorithms, pp. 723–735 (2002)Google Scholar
- 15.Sommer, C.: Christian sommer’s homepage (2009), http://www.sommer.jp/graphs/