Orthogonal Graph Drawing with Inflexible Edges

  • Thomas Bläsius
  • Sebastian Lehmann
  • Ignaz Rutter
Conference paper
Part of the Lecture Notes in Computer Science book series (LNCS, volume 9079)


We consider the problem of creating plane orthogonal drawings of 4-planar graphs (planar graphs with maximum degree 4) with constraints on the number of bends per edge. More precisely, we have a flexibility function assigning to each edge \(e\) a natural number \({{\mathrm{flex}}}(e)\), its flexibility. The problem FlexDraw asks whether there exists an orthogonal drawing such that each edge \(e\) has at most \({{\mathrm{flex}}}(e)\) bends. It is known that FlexDraw is NP-hard if \({{\mathrm{flex}}}(e) = 0\) for every edge \(e\) [7]. On the other hand, FlexDraw can be solved efficiently if \({{\mathrm{flex}}}(e) \ge 1\) [2] and is trivial if \({{\mathrm{flex}}}(e) \ge 2\) [1] for every edge \(e\).

To close the gap between the NP-hardness for \({{\mathrm{flex}}}(e) = 0\) and the efficient algorithm for \({{\mathrm{flex}}}(e) \ge 1\), we investigate the computational complexity of FlexDraw in case only few edges are inflexible (i.e., have flexibility \(0\)). We show that for any \(\varepsilon > 0\) FlexDraw is NP-complete for instances with \(O(n^\varepsilon )\) inflexible edges with pairwise distance \(\Omega (n^{1-\varepsilon })\) (including the case where they induce a matching). On the other hand, we give an FPT-algorithm with running time \(O(2^k\cdot n \cdot T_{{{\mathrm{flow}}}}(n))\), where \(T_{{{\mathrm{flow}}}}(n)\) is the time necessary to compute a maximum flow in a planar flow network with multiple sources and sinks, and \(k\) is the number of inflexible edges having at least one endpoint of degree 4.


Cost Function Outer Face Series Composition Orthogonal Representation Critical Edge 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.


Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.


  1. 1.
    Biedl, T., Kant, G.: A better heuristic for orthogonal graph drawings. Comput. Geom.: Theory Appl. 9(3), 159–180 (1998)CrossRefMATHMathSciNetGoogle Scholar
  2. 2.
    Bläsius, T., Krug, M., Rutter, I., Wagner, D.: Orthogonal graph drawing with flexibility constraints. Algorithmica 68(4) (2014)Google Scholar
  3. 3.
    Bläsius, T., Lehmann, S., Rutter, I.: Orthogonal graph drawing with inflexible edges. CoRR abs/1404.2943, 1–23 (2014).
  4. 4.
    Bläsius, T., Rutter, I., Wagner, D.: Optimal orthogonal graph drawing with convex bend costs. In: Fomin, F.V., Freivalds, R., Kwiatkowska, M., Peleg, D. (eds.) ICALP 2013, Part I. LNCS, vol. 7965, pp. 184–195. Springer, Heidelberg (2013) CrossRefGoogle Scholar
  5. 5.
    Cornelsen, S., Karrenbauer, A.: Accelerated bend minimization. J. Graph Alg. Appl. 16(3), 635–650 (2012)CrossRefMATHMathSciNetGoogle Scholar
  6. 6.
    Di Battista, G., Liotta, G., Vargiu, F.: Spirality and optimal orthogonal drawings. SIAM J. Comput. 27(6), 1764–1811 (1998)CrossRefMATHMathSciNetGoogle Scholar
  7. 7.
    Di Battista, G., Tamassia, R.: On-line maintenance of triconnected components with SPQR-trees. Algorithmica 15(4), 302–318 (1996)CrossRefMATHMathSciNetGoogle Scholar
  8. 8.
    Garg, A., Tamassia, R.: On the computational complexity of upward and rectilinear planarity testing. SIAM J. Comput. 31(2), 601–625 (2001)CrossRefMATHMathSciNetGoogle Scholar
  9. 9.
    Tamassia, R.: On embedding a graph in the grid with the minimum number of bends. SIAM J. Comput. 16(3), 421–444 (1987)CrossRefMATHMathSciNetGoogle Scholar

Copyright information

© Springer International Publishing Switzerland 2015

Authors and Affiliations

  • Thomas Bläsius
    • 1
  • Sebastian Lehmann
    • 1
  • Ignaz Rutter
    • 1
  1. 1.Faculty of InformaticsKarlsruhe Institute of Technology (KIT)KarlsruheGermany

Personalised recommendations