Skip to main content
Log in

2-Layer Right Angle Crossing Drawings

  • Published:
Algorithmica Aims and scope Submit manuscript

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.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8
Fig. 9
Fig. 10
Fig. 11
Fig. 12
Fig. 13
Fig. 14
Fig. 15
Fig. 16
Fig. 17
Fig. 18
Fig. 19
Fig. 20
Fig. 21

Similar content being viewed by others

Notes

  1. A trivial biconnected component consists of a single edge.

  2. Notice that jik because z i is in Σ.

  3. 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

  1. 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)

    Chapter  Google Scholar 

  2. Ahuja, R.K., Magnanti, T.L., Orlin, J.B.: Network Flows: Theory, Algorithms, and Applications. Prentice Hall, New York (1993)

    MATH  Google Scholar 

  3. 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

    Article  MATH  MathSciNet  Google Scholar 

  4. 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)

    Chapter  Google Scholar 

  5. 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)

    Article  MATH  MathSciNet  Google Scholar 

  6. 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)

    Article  MATH  MathSciNet  Google Scholar 

  7. 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)

    Chapter  Google Scholar 

  8. 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)

    Chapter  Google Scholar 

  9. 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)

    Article  MATH  MathSciNet  Google Scholar 

  10. 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)

    Chapter  Google Scholar 

  11. Didimo, W., Eades, P., Liotta, G.: A characterization of complete bipartite RAC graphs. Inf. Process. Lett. 110(16), 687–691 (2010)

    Article  MATH  MathSciNet  Google Scholar 

  12. Didimo, W., Eades, P., Liotta, G.: Drawing graphs with right angle crossings. Theor. Comput. Sci. 412(39), 5156–5166 (2011)

    Article  MATH  MathSciNet  Google Scholar 

  13. Didimo, W., Liotta, G.: The crossing angle resolution in graph drawing. In: Thirty Essays on Geometric Graph Theory. Springer, Berlin (2012)

    Google Scholar 

  14. 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)

    Article  MATH  MathSciNet  Google Scholar 

  15. Dujmovic, V., Gudmundsson, J., Morin, P., Wolle, T.: Notes on large angle crossing graphs. Chic. J. Theor. Comput. Sci. 2011, 1–14 (2011)

    Article  MathSciNet  Google Scholar 

  16. Dujmović, V., Whitesides, S.: An efficient fixed parameter tractable algorithm for 1-sided crossing minimization. Algorithmica 40(1), 15–31 (2004)

    Article  MATH  MathSciNet  Google Scholar 

  17. Eades, P., Kelly, D.: Heuristics for drawing 2-layered networks. Ars Comb. 21, 89–98 (1986)

    MathSciNet  Google Scholar 

  18. 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)

    Chapter  Google Scholar 

  19. Eades, P., McKay, B., Wormald, N.: On an edge crossing problem. In: Proc. of 9th Australian Computer Science Conference, pp. 327–334 (1986)

    Google Scholar 

  20. Eades, P., Whitesides, S.: Drawing graphs in two layers. Theor. Comput. Sci. 131(2), 361–374 (1994)

    Article  MATH  MathSciNet  Google Scholar 

  21. Eades, P., Wormald, N.C.: Edge crossings in drawings of bipartite graphs. Algorithmica 11(4), 379–403 (1994)

    Article  MATH  MathSciNet  Google Scholar 

  22. Harary, F., Schwenk, A.: A new crossing number for bipartite graphs. Util. Math. 1, 203–209 (1972)

    MATH  MathSciNet  Google Scholar 

  23. Huang, W.: Using eye tracking to investigate graph layout effects. In: 6th International Asia-Pacific Symposium on Visualization. APVIS ’07, pp. 97–100 (2007)

    Chapter  Google Scholar 

  24. Huang, W., Hong, S.-H., Eades, P.: Effects of crossing angles. In: IEEE Pacific Visualization Symposium, 2008. PacificVIS ’08, pp. 41–46 (2008)

    Chapter  Google Scholar 

  25. Jünger, M., Mutzel, P.: 2-layer straightline crossing minimization: Performance of exact and heuristic algorithms. J. Graph Algorithms Appl. 1 (1997)

  26. Mutzel, P.: An alternative method to crossing minimization on hierarchical graphs. SIAM J. Optim. 11(4), 1065–1080 (2001)

    Article  MATH  MathSciNet  Google Scholar 

  27. Sugiyama, K.: Graph Drawing and Applications for Software and Knowledge Engineers. World Scientific, Singapore (2002)

    Book  MATH  Google Scholar 

  28. Tomii, N., Kambayashi, Y., Yajima, S.: On planarization algorithms of 2-level graphs. Inst. Elect. Common. Eng. Jpn. (1977). Technical Report EC77-38

  29. 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)

    Article  MATH  Google Scholar 

  30. 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)

    Chapter  Google Scholar 

  31. Waterman, M.S., Griggs, J.R.: Methods for visual understanding of hierarchical system structures. IEEE Trans. Syst. Man Cybern. 2, 109–125 (1981)

    Google Scholar 

Download references

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

Authors

Corresponding author

Correspondence to Walter Didimo.

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

Reprints 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

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s00453-012-9706-7

Keywords

Navigation