abstract
In a leveled directed acyclic graph G = (V, E) the vertex set V is partitioned into k ≤ ∣V∣ levels V 1, V 2,...,V k such that for each edge (u,v) ∈ E with u ∈ V i and v ∈ V j we have i <j. The level planarity testing problem is to decide if G can be drawn in the plane such that for each level V i , all v ∈ V i are drawn on the line l i = (x, k − i) ∣x ∈ ℝ , the edges are drawn monotone with respect to the vertical direction, and no edges intersect except at their end vertices. If G has a single source, the test can be performed in O(∣V∣) time by an algorithm of Di Battista and (1988) that uses the PQ-tree data structure introduced by Booth and (1976). PQ-trees have also been proposed by Heath and (1996a,b) to test level planarity of leveled directed acyclic graphs with several sources and sinks. It has been shown in (1997) that this algorithm is not correct in the sense that it does not state correctly level planarity of every level planar graph. In this paper, we present a correct linear time level planarity testing algorithm that is based on two main new techniques that replace the incorrect crucial parts of the algorithm of Heath and (1996a,b).
Supported by DFG-Grant Ju204/7-2, Forschungsschwerpunkt “Effiziente Algorithmen für diskrete Probleme und ihre Anwendungen”
Chapter PDF
Similar content being viewed by others
References
K. Booth and G. Lueker. Testing for the consecutive ones property, interval graphs, and graph planarity using PQ-tree algorithms. Journal of Computer and System Sciences, 13:335–379, 1976.
N. Chiba, T. Nishizeki, S. Abe, and T. Ozawa. A linear algorithm for embedding planar graphs using PQ-trees. Journal of Computer and System Sciences, 30:54–76, 1985.
G. Di Battista and E. Nardelli. Hierarchies and planarity theory. IEEE Transactions on systems, man, and cybernetics, 18(6):1035–1046, 1988.
L.S. Heath and S.V. Pemmaraju. Recognizing leveled-planar dags in linear time. In F. J. Brandenburg, editor, Proc. Graph Drawing’ 95, volume 1027 of Lecture Notes in Computer Science, pages 300–311. Springer Verlag, 1996a.
L.S. Heath and S.V. Pemmaraju. Stack and queue layouts of directed acyclic graphs: Part II. Technical report, Department of Computer Science, Virginia Polytechnic Institute & State University, 1996b.
M. Jünger, S. Leipert, and P. Mutzel. Pitfalls of using PQ-trees in Automatic Graph Drawing. In G. DiBattista, editor, Graph Drawing’ 97, volume 1353 of Lecture Notes in Computer Science, pages 193–204. Springer Verlag, 1997.
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 1998 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Jünger, M., Leipert, S., Mutzel, P. (1998). Level Planarity Testing in Linear Time. In: Whitesides, S.H. (eds) Graph Drawing. GD 1998. Lecture Notes in Computer Science, vol 1547. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-37623-2_17
Download citation
DOI: https://doi.org/10.1007/3-540-37623-2_17
Published:
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-65473-5
Online ISBN: 978-3-540-37623-1
eBook Packages: Springer Book Archive