Stick Graphs with Length Constraints

  • Steven Chaplick
  • Philipp Kindermann
  • Andre Löffler
  • Florian Thiele
  • Alexander Wolff
  • Alexander Zaft
  • Johannes ZinkEmail author
Conference paper
Part of the Lecture Notes in Computer Science book series (LNCS, volume 11904)


Stick graphs are intersection graphs of horizontal and vertical line segments that all touch a line of slope \(-1\) and lie above this line. De Luca et al. [GD’18] considered the recognition problem of stick graphs when no order is given (STICK), when the order of either one of the two sets is given (\(\textsf {STICK}_\mathsf {A}\)), and when the order of both sets is given (\(\textsf {STICK}_\mathsf {AB}\)). They showed how to solve \(\textsf {STICK}_\mathsf {AB}\) efficiently.

In this paper, we improve the running time of their algorithm, and we solve \(\textsf {STICK}_\mathsf {A}\) efficiently. Further, we consider variants of these problems where the lengths of the sticks are given as input. We show that these variants of STICK, \(\textsf {STICK}_\mathsf {A}\), and \(\textsf {STICK}_\mathsf {AB}\) are all NP-complete. On the positive side, we give an efficient solution for \(\textsf {STICK}_\mathsf {AB}\) with fixed stick lengths if there are no isolated vertices.


  1. 1.
    Cabello, S., Jejčič, M.: Refining the hierarchies of classes of geometric intersection graphs. Electr. J. Comb. 24(1), P1.33 (2017).
  2. 2.
    Cardinal, J., Felsner, S., Miltzow, T., Tompkins, C., Vogtenhuber, B.: Intersection graphs of rays and grounded segments. J. Graph Algorithms Appl. 22(2), 273–295 (2018). Scholar
  3. 3.
    Catanzaro, D., Chaplick, S., Felsner, S., Halldórsson, B.V., Halldórsson, M.M., Hixon, T., Stacho, J.: Max point-tolerance graphs. Discrete Appl. Math. 216, 84–97 (2017).
  4. 4.
    Chalopin, J., Gonçalves, D.: Every planar graph is the intersection graph of segments in the plane: extended abstract. In: STOC 2009, pp. 631–638. ACM (2009).
  5. 5.
    Chaplick, S., Dorbec, P., Kratochvíl, J., Montassier, M., Stacho, J.: Contact representations of planar graphs: extending a partial representation is hard. In: Kratsch, D., Todinca, I. (eds.) WG 2014. LNCS, vol. 8747, pp. 139–151. Springer, Heidelberg (2014).
  6. 6.
    Chaplick, S., Felsner, S., Hoffmann, U., Wiechert, V.: Grid intersection graphs and order dimension. Order 35(2), 363–391 (2018).
  7. 7.
    Chaplick, S., Hell, P., Otachi, Y., Saitoh, T., Uehara, R.: Ferrers dimension of grid intersection graphs. Discrete Appl. Math. 216, 130–135 (2017). Scholar
  8. 8.
    Chaplick, S., Kindermann, P., Löffler, A., Thiele, F., Wolff, A., Zaft, A., Zink, J.: Stick graphs with length constraints. Arxiv report (2019).
  9. 9.
    De Luca, F., Hossain, M.I., Kobourov, S.G., Lubiw, A., Mondal, D.: Recognition and drawing of stick graphs. In: Biedl, T.C., Kerren, A. (eds.) GD 2018. LNCS, vol. 11282, pp. 303–316. Springer, Heidelberg (2018).
  10. 10.
    Felsner, S., Knauer, K., Mertzios, G.B., Ueckerdt, T.: Intersection graphs of L-shapes and segments in the plane. In: Csuhaj-Varjú, E., Dietzfelbinger, M., Ésik, Z. (eds.) MFCS 2014. LNCS, vol. 8635, pp. 299–310. Springer, Heidelberg (2014). Scholar
  11. 11.
    Garey, M.R., Johnson, D.S.: Computers and Intractability: A Guide to the Theory of NP-Completeness. W. H. Freeman, New York (1979)zbMATHGoogle Scholar
  12. 12.
    Halldórsson, B.V., Aguiar, D., Tarpine, R., Istrail, S.: The Clark phaseable sample size problem: long-range phasing and loss of heterozygosity in GWAS. J. Comput. Biol. 18(3), 323–333 (2011). Scholar
  13. 13.
    Hartman, I.B., Newman, I., Ziv, R.: On grid intersection graphs. Discrete Math. 87(1), 41–52 (1991). Scholar
  14. 14.
    Jünger, M., Leipert, S., Mutzel, P.: Level planarity testing in linear time. In: Whitesides, S.H. (ed.) GD 1998. LNCS, vol. 1547, pp. 224–237. Springer, Heidelberg (1998).
  15. 15.
    Klavík, P., Otachi, Y., Sejnoha, J.: On the classes of interval graphs of limited nesting and count of lengths. Algorithmica 81(4), 1490–1511 (2019).
  16. 16.
    Köbler, J., Kuhnert, S., Watanabe, O.: Interval graph representation with given interval and intersection lengths. J. Discrete Algorithms 34, 108–117 (2015). Scholar
  17. 17.
    Kratochvíl, J.: A special planar satisfiability problem and a consequence of its NP-completeness. Discrete Appl. Math. 52(3), 233–252 (1994). Scholar
  18. 18.
    Kratochvíl, J., Matoušek, J.: Intersection graphs of segments. J. Comb. Theory, Series B 62(2), 289–315 (1994).
  19. 19.
    Kratsch, D., McConnell, R.M., Mehlhorn, K., Spinrad, J.P.: Certifying algorithms for recognizing interval graphs and permutation graphs. SIAM J. Comput. 36(2), 326–353 (2006). Scholar
  20. 20.
    Li, W.N.: Two-segmented channel routing is strong NP-complete. Discrete Appl. Math. 78(1–3), 291–298 (1997). Scholar
  21. 21.
    Lubiw, A.: Private communication (2019)Google Scholar
  22. 22.
    Matoušek, J.: Intersection graphs of segments and \(\exists \mathbb{R}\). ArXiv. (2014)
  23. 23.
    Pe’er, I., Shamir, R.: Realizing interval graphs with size and distance constraints. SIAM J. Discrete Math. 10(4), 662–687 (1997). Scholar
  24. 24.
    Schaefer, M.: Complexity of some geometric and topological problems. In: GD 2009. LNCS, vol. 5849, pp. 334–344. Springer, Heidelberg (2009).
  25. 25.
    Sen, M.K., Sanyal, B.K.: Indifference digraphs: a generalization of indifference graphs and semiorders. SIAM J. Discrete Math. 7(2), 157–165 (1994). Scholar
  26. 26.
    Shrestha, A.M.S., Takaoka, A., Tayu, S., Ueno, S.: On two problems of nano-PLA design. IEICE Trans. 94-D(1), 35–41 (2011).
  27. 27.
    Spinrad, J., Brandstädt, A., Stewart, L.: Bipartite permutation graphs. Discrete Appl. Math. 18(3), 279–292 (1987).

Copyright information

© Springer Nature Switzerland AG 2019

Authors and Affiliations

  1. 1.Institut für InformatikUniversität WürzburgWürzburgGermany

Personalised recommendations