Level Planarity Testing in Linear Time

  • Authors:
  • Michael Jünger;Sebastian Leipert;Petra Mutzel

  • Affiliations:
  • -;-;-

  • Venue:
  • GD '98 Proceedings of the 6th International Symposium on Graph Drawing
  • Year:
  • 1998

Quantified Score

Hi-index 0.00

Visualization

Abstract

In a leveled directed acyclic graph G = (V,E) the vertex set V is partitioned into k 驴 |V| levels V1; V2,...,Vk such that for each edge (u, v) 驴 E with u 驴 i and 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 i, all v 驴 i are drawn on the line li = {(x, k-i) | x 驴 R}, 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 Nardelli (1988) that uses the PQ-tree data structure introduced by Booth and Lueker (1976). PQ-trees have also been proposed by Heath and Pemmaraju (1996a,b) to test level planarity of leveled directed acyclic graphs with several sources and sinks. It has been shown in J眉nger, Leipert, and Mutzel (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 Pemmaraju (1996a,b).