Compact Layered Drawings of General Directed Graphs

  • Adalat Jabrayilov
  • Sven Mallach
  • Petra Mutzel
  • Ulf Rüegg
  • Reinhard von Hanxleden
Conference paper
Part of the Lecture Notes in Computer Science book series (LNCS, volume 9801)

Abstract

We consider the problem of layering general directed graphs under height and possibly also width constraints. Given a directed graph \(G=(V,A)\) and a maximal height, we propose a layering approach that minimizes a weighted sum of the number of reversed arcs, the arc lengths, and the width of the drawing. We call this the Compact Generalized Layering Problem (CGLP). Here, the width of a drawing is defined as the maximum sum of the number of vertices placed on a layer and the number of dummy vertices caused by arcs traversing the layer. The CGLP is \(\mathcal {NP}\)-hard. We present two MIP models for this problem. The first one (EXT) is our extension of a natural formulation for directed acyclic graphs as suggested by Healy and Nikolov. The second one (CGL) is a new formulation based on partial orderings. Our computational experiments on two benchmark sets show that the CGL formulation can be solved much faster than EXT using standard commercial MIP solvers. Moreover, we suggest a variant of CGL, called MML, that can be seen as a heuristic approach. In our experiments, MML clearly improves on CGL in terms of running time while it does not considerably increase the average arc lengths and widths of the layouts although it solves a slightly different problem where the dummy vertices are not taken into account.

Keywords

Layer-based layout Layer assignment Mixed integer programming 

References

  1. 1.
    Coffman, E.G., Graham, R.L.: Optimal scheduling for two-processor systems. Acta Informatica 1(3), 200–213 (1972)MathSciNetCrossRefMATHGoogle Scholar
  2. 2.
    Eades, P., Lin, X., Smyth, W.F.: A fast and effective heuristic for the feedback arc set problem. Inf. Process. Lett. 47(6), 319–323 (1993)MathSciNetCrossRefMATHGoogle Scholar
  3. 3.
    Eades, P., Sugiyama, K.: How to draw a directed graph. J. Inf. Process. 13(4), 424–437 (1990)MATHGoogle Scholar
  4. 4.
    Gansner, E.R., Koutsofios, E., North, S.C., Vo, K.P.: A technique for drawing directed graphs. Softw. Eng. 19(3), 214–230 (1993)CrossRefGoogle Scholar
  5. 5.
    Healy, P., Nikolov, N.S.: A branch-and-cut approach to the directed acyclic graph layering problem. In: Goodrich, M.T., Kobourov, S.G. (eds.) GD 2002. LNCS, vol. 2528, pp. 98–109. Springer, Heidelberg (2002). doi:10.1007/3-540-36151-0_10 CrossRefGoogle Scholar
  6. 6.
    Healy, P., Nikolov, N.S.: How to layer a directed acyclic graph. In: Mutzel, P., Jünger, M., Leipert, S. (eds.) GD 2001. LNCS, vol. 2265, pp. 16–30. Springer, Heidelberg (2002). doi:10.1007/3-540-45848-4_2 CrossRefGoogle Scholar
  7. 7.
    Jabrayilov, A., Mallach, S., Mutzel, P., Rüegg, U., von Hanxleden, R.: Compact layered drawings of general directed graphs. arXiv:1609.01755 [cs.DS] (2016)
  8. 8.
    Nachmanson, L., Robertson, G., Lee, B.: Drawing graphs with GLEE. In: Hong, S.-H., Nishizeki, T., Quan, W. (eds.) GD 2007. LNCS, vol. 4875, pp. 389–394. Springer, Heidelberg (2008). doi:10.1007/978-3-540-77537-9_38 CrossRefGoogle Scholar
  9. 9.
    Nikolov, N.S., Tarassov, A., Branke, J.: In search for efficient heuristics for minimum-width graph layering with consideration of dummy nodes. J. Exp. Algorithmics 10, 1–27 (2005). Article No. 2.7MathSciNetCrossRefMATHGoogle Scholar
  10. 10.
    Rüegg, U., Ehlers, T., Spönemann, M., von Hanxleden, R.: A generalization of the directed graph layering problem. In: Proceedings of the 24th International Symposium on Graph Drawing and Network Visualization (GD 2016) (2016)Google Scholar
  11. 11.
    Sugiyama, K., Tagawa, S., Toda, M.: Methods for visual understanding of hierarchical system structures. IEEE Trans. Syst. Man Cybern. 11(2), 109–125 (1981)MathSciNetCrossRefGoogle Scholar
  12. 12.
    Wilf, H.S.: The eigenvalues of a graph and its chromatic number. J. Lond. Math. Soc. 42, 330–332 (1967)MathSciNetCrossRefMATHGoogle Scholar

Copyright information

© Springer International Publishing AG 2016

Authors and Affiliations

  • Adalat Jabrayilov
    • 1
  • Sven Mallach
    • 3
  • Petra Mutzel
    • 1
  • Ulf Rüegg
    • 2
  • Reinhard von Hanxleden
    • 2
  1. 1.Department of Computer ScienceTechnische Universität DortmundDortmundGermany
  2. 2.Department of Computer ScienceKiel UniversityKielGermany
  3. 3.Department of Computer ScienceUniversität zu KölnKölnGermany

Personalised recommendations