×

Faster force-directed graph drawing with the well-separated pair decomposition. (English) Zbl 1461.68158

Summary: The force-directed paradigm is one of the few generic approaches to drawing graphs. Since force-directed algorithms can be extended easily, they are used frequently. Most of these algorithms are, however, quite slow on large graphs, as they compute a quadratic number of forces in each iteration. We give a new algorithm that takes only \(O(m+n\log n)\) time per iteration when laying out a graph with \(n\) vertices and \(m\) edges. Our algorithm approximates the true forces using the so-called well-separated pair decomposition. We perform experiments on a large number of graphs and show that we can strongly reduce the runtime, even on graphs with less than a hundred vertices, without a significant influence on the quality of the drawings (in terms of the number of crossings and deviation in edge lengths).

MSC:

68R10 Graph theory (including graph drawing) in computer science
05C62 Graph representations (geometric and intersection representations, etc.)
68W40 Analysis of algorithms

Software:

JUNG; OGDF

References:

[1] Eades, P.; A heuristics for graph drawing; Congr. Numerantium: 1984; Volume 42 ,146-160.
[2] Fruchterman, T.M.J.; Reingold, E.M.; Graph drawing by force-directed placement; Softw. Pract. Exp.: 1991; Volume 21 ,1129-1164.
[3] Fink, M.; Haverkort, H.; Nöllenburg, M.; Roberts, M.; Schuhmann, J.; Wolff, A.; Drawing Metro Maps Using Bézier Curves; Graph Drawing: Heidelberg, Germany 2013; ,463-474. · Zbl 1377.68274
[4] Barnes, J.; Hut, P.; A hierarchical O(N log N) force-calculation algorithm; Nature: 1986; Volume 324 ,446-449.
[5] Walshaw, C.; A Multilevel Algorithm for Force-Directed Graph-Drawing; J. Graph Algorithms Appl.: 2003; Volume 7 ,253-285. · Zbl 1068.68109
[6] Hachul, S.; Jünger, M.; Drawing large graphs with a potential-field-based multilevel algorithm; Graph Drawing: Heidelberg, Germany 2005; ,285-295. · Zbl 1111.68583
[7] Greengard, L.; Rokhlin, V.; A fast algorithm for particle simulations; J. Comput. Phys.: 1987; Volume 73 ,325-348. · Zbl 0629.65005
[8] Hachul, S.; A Potential-Field-Based Multilevel Algorithm for Drawing Large Graphs; Ph.D. Thesis: Cologne, Germany 2005; . · Zbl 1111.68583
[9] Godiyal, A.; Hoberock, J.; Garland, M.; Hart, J.C.; Rapid Multipole Graph Drawing on the GPU; Graph Drawing: Heidelberg, Germany 2009; ,90-101. · Zbl 1213.68451
[10] Bartel, G.; Gutwenger, C.; Klein, K.; Mutzel, P.; An Experimental Evaluation of Multilevel Layout Methods; Graph Drawing: Heidelberg, Germany 2011; ,80-91. · Zbl 1314.68217
[11] Brandenburg, F.J.; Himsolt, M.; Rohrer, C.; An experimental comparison of force-directed and randomized graph drawing algorithms; Graph Drawing: Heidelberg, Germany 1996; ,76-87.
[12] Frick, A.; Ludwig, A.; Mehldau, H.; A fast adaptive layout algorithm for undirected graphs; Graph Drawing: Heidelberg, Germany 1995; ,388-403.
[13] Callahan, P.B.; Kosaraju, S.R.; A decomposition of multidimensional point sets with applications to k-nearest-neighbors and n-body potential fields; J. ACM: 1995; Volume 42 ,67-90. · Zbl 0886.68078
[14] Gronemann, M.; Engineering the Fast-Multipole-Multilevel Method for Multicore and SIMD Architectures; Master’s Thesis: Germany 2009; .
[15] Huang, W.; Eades, P.; Hong, S.H.; Lin, C.C.; Improving multiple aesthetics produces better graph drawings; J. Vis. Lang. Comput.: 2013; Volume 24 ,262-272.
[16] Lin, C.C.; Yen, H.C.; A new force-directed graph drawing method based on edge-edge repulsion; J. Vis. Lang. Comput.: 2012; Volume 23 ,29-42.
[17] Hu, Y.; Efficient, High-Quality Force-Directed Graph Drawing; Math. J.: 2006; Volume 10 ,37-71.
[18] O’Madadhain, J.; Fisher, D.; White, S.; Java Universal Network/Graph Framework (JUNG); ; .
[19] Chimani, M.; Gutwenger, C.; Jünger, M.; Klau, G.W.; Klein, K.; Mutzel, P.; The Open Graph Drawing Framework (OGDF); Handbook of Graph Drawing and Visualization: Boca Raton, FL, USA 2014; .
[20] Lipp, F.; Wolff, A.; Zink, J.; Faster Force-Directed Graph Drawing with the Well-Separated Pair Decomposition; ; . · Zbl 1471.68203
[21] Narasimhan, G.; Smid, M.; ; Geometric Spanner Networks: New York, NY, USA 2007; . · Zbl 1140.68068
[22] Hachul, S.; Jünger, M.; Large-Graph Layout Algorithms at Work: An Experimental Study; J. Graph Algorithms Appl.: 2007; Volume 11 ,345-369. · Zbl 1161.68672
[23] Rome Graphs; ; .
[24] North, S.; North Graphs; ; .
[25] Eppstein, D.; Wang, J.Y.; A steady state model for graph power laws; Proceedings of the 2nd International Workshop on Web Dynamics: ; .
[26] Rumsey, D.J.; ; Statistics II for Dummies: Indianapolis, IN, USA 2009; .
This reference list is based on information provided by the publisher or from digital mathematics libraries. Its items are heuristically matched to zbMATH identifiers and may contain data conversion errors. In some cases that data have been complemented/enhanced by data from zbMATH Open. This attempts to reflect the references listed in the original paper as accurately as possible without claiming completeness or a perfect matching.