Abstract
A 2-layer drawing represents a bipartite graph where each vertex is a point on one of two parallel lines, no two vertices on the same line are adjacent, and the edges are straight-line segments. In this paper we study 2-layer drawings where any two crossing edges meet at right angle. We characterize the graphs that admit this type of drawing, provide linear-time testing and embedding algorithms, and present a polynomial-time crossing minimization technique. Also, for a given graph G and a constant k, we prove that it is \(\mathcal{NP}\)-complete to decide whether G contains a subgraph of at least k edges having a 2-layer drawing with right angle crossings.
Similar content being viewed by others
Notes
A trivial biconnected component consists of a single edge.
Notice that j≤i≤k because z i is in Σ.
In this discussion we consider the case when B i is preceded by a bridge and followed by another bridge. If B i is the first or the last non-trivial biconnected component of skel(G) the situation is analogous, the only difference being that the type of either T(w 1) or T(w 2) is 4 or 5, instead of 2 or 3.
References
Ackerman, E., Fulek, R., Tóth, C.: On the size of graphs that admit polyline drawings with few bends and crossing angles. In: Brandes, U., Cornelsen, S. (eds.) Graph Drawing. Lecture Notes in Computer Science, vol. 6502, pp. 1–12. Springer, Berlin/Heidelberg (2011)
Ahuja, R.K., Magnanti, T.L., Orlin, J.B.: Network Flows: Theory, Algorithms, and Applications. Prentice Hall, New York (1993)
Angelini, P., Cittadini, L., Di Battista, G., Didimo, W., Frati, F., Kaufmann, M., Symvonis, A.: On the perspective opened by right angle crossing drawings. J. Graph Algorithms Appl. 15(1), 53–78 (2011). Special issue on GD’09
Argyriou, E., Bekos, M., Symvonis, A.: The straight-line RAC drawing problem is NP-hard. In: Cerná, I., Gyimóthy, T., Hromkovic, J., Jefferey, K., Královic, R., Vukolic, M., Wolf, S. (eds.) SOFSEM 2011: Theory and Practice of Computer Science. Lecture Notes in Computer Science, vol. 6543, pp. 74–85. Springer, Berlin/Heidelberg (2011)
Arikushi, K., Fulek, R., Keszegh, B., Moric, F., Tóth, C.D.: Graphs that admit right angle crossing drawings. Comput. Geom. 45(4), 169–177 (2012)
Booth, K., Lueker, G.: Testing for the consecutive ones property, interval graphs and graph planarity using PQ-trees. J. Comput. Syst. Sci. 13, 335–379 (1976)
Di Giacomo, E., Didimo, W., Eades, P., Liotta, G.: 2-layer right angle crossing drawings. In: Iliopoulos, C., Smyth, W. (eds.) Combinatorial Algorithms. Lecture Notes in Computer Science, vol. 7056, pp. 156–169. Springer, Berlin/Heidelberg (2011)
Di Giacomo, E., Didimo, W., Grilli, L., Liotta, G., Romeo, S.: Heuristics for the maximum 2-layer RAC subgraph problem. In: Rahman, M., Nakano, S.-I. (eds.) WALCOM: Algorithms and Computation. Lecture Notes in Computer Science, vol. 7157, pp. 211–216. Springer, Berlin/Heidelberg (2012)
Di Giacomo, E., Didimo, W., Liotta, G., Meijer, H.: Area, curve complexity, and crossing resolution of non-planar graph drawings. Theory Comput. Syst. 49(3), 565–575 (2011)
Didimo, W., Eades, P., Liotta, G.: Drawing graphs with right angle crossings. In: Dehne, F., Gavrilova, M., Sack, J.-R., Tóth, C.D. (eds.) Algorithms and Data Structures. Lecture Notes in Computer Science, vol. 5664, pp. 206–217. Springer, Berlin/Heidelberg (2009)
Didimo, W., Eades, P., Liotta, G.: A characterization of complete bipartite RAC graphs. Inf. Process. Lett. 110(16), 687–691 (2010)
Didimo, W., Eades, P., Liotta, G.: Drawing graphs with right angle crossings. Theor. Comput. Sci. 412(39), 5156–5166 (2011)
Didimo, W., Liotta, G.: The crossing angle resolution in graph drawing. In: Thirty Essays on Geometric Graph Theory. Springer, Berlin (2012)
Dujmović, V., Fellows, M.R., Hallett, M.T., Kitching, M., Liotta, G., McCartin, C., Nishimura, N., Ragde, P., Rosamond, F.A., Suderman, M., Whitesides, S., Wood, D.R.: A fixed-parameter approach to 2-layer planarization. Algorithmica 45(2), 159–182 (2006)
Dujmovic, V., Gudmundsson, J., Morin, P., Wolle, T.: Notes on large angle crossing graphs. Chic. J. Theor. Comput. Sci. 2011, 1–14 (2011)
Dujmović, V., Whitesides, S.: An efficient fixed parameter tractable algorithm for 1-sided crossing minimization. Algorithmica 40(1), 15–31 (2004)
Eades, P., Kelly, D.: Heuristics for drawing 2-layered networks. Ars Comb. 21, 89–98 (1986)
Eades, P., Liotta, G.: Right angle crossing graphs and 1-planarity. In: van Kreveld, M., Speckmann, B. (eds.) Graph Drawing. Lecture Notes in Computer Science, vol. 7034, pp. 148–153. Springer, Berlin/Heidelberg (2012)
Eades, P., McKay, B., Wormald, N.: On an edge crossing problem. In: Proc. of 9th Australian Computer Science Conference, pp. 327–334 (1986)
Eades, P., Whitesides, S.: Drawing graphs in two layers. Theor. Comput. Sci. 131(2), 361–374 (1994)
Eades, P., Wormald, N.C.: Edge crossings in drawings of bipartite graphs. Algorithmica 11(4), 379–403 (1994)
Harary, F., Schwenk, A.: A new crossing number for bipartite graphs. Util. Math. 1, 203–209 (1972)
Huang, W.: Using eye tracking to investigate graph layout effects. In: 6th International Asia-Pacific Symposium on Visualization. APVIS ’07, pp. 97–100 (2007)
Huang, W., Hong, S.-H., Eades, P.: Effects of crossing angles. In: IEEE Pacific Visualization Symposium, 2008. PacificVIS ’08, pp. 41–46 (2008)
Jünger, M., Mutzel, P.: 2-layer straightline crossing minimization: Performance of exact and heuristic algorithms. J. Graph Algorithms Appl. 1 (1997)
Mutzel, P.: An alternative method to crossing minimization on hierarchical graphs. SIAM J. Optim. 11(4), 1065–1080 (2001)
Sugiyama, K.: Graph Drawing and Applications for Software and Knowledge Engineers. World Scientific, Singapore (2002)
Tomii, N., Kambayashi, Y., Yajima, S.: On planarization algorithms of 2-level graphs. Inst. Elect. Common. Eng. Jpn. (1977). Technical Report EC77-38
Valls, V., Martí, R., Lino, P.: A branch and bound algorithm for minimizing the number of crossing arcs in bipartite graphs. Eur. J. Oper. Res. 90(2), 303–319 (1996)
van Kreveld, M.: The quality ratio of RAC drawings and planar drawings of planar graphs. In: Brandes, U., Cornelsen, S. (eds.) Graph Drawing. Lecture Notes in Computer Science, vol. 6502, pp. 371–376. Springer, Berlin/Heidelberg (2011)
Waterman, M.S., Griggs, J.R.: Methods for visual understanding of hierarchical system structures. IEEE Trans. Syst. Man Cybern. 2, 109–125 (1981)
Acknowledgements
We are very grateful to the anonymous reviewers of this work. Their valuable comments helped us to significantly improve the quality of the paper.
Author information
Authors and Affiliations
Corresponding author
Additional information
Work supported in part by MIUR of Italy under project AlgoDEEP prot. 2008TFBWL4. An abstract of this work was presented at the International Workshop on Algorithms and Combinatorics (IWOCA 2011) [7].
Rights and permissions
About this article
Cite this article
Di Giacomo, E., Didimo, W., Eades, P. et al. 2-Layer Right Angle Crossing Drawings. Algorithmica 68, 954–997 (2014). https://doi.org/10.1007/s00453-012-9706-7
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s00453-012-9706-7