Upward Planar Drawing of Single-Source Acyclic Digraphs
- 1 April 1996
- journal article
- Published by Society for Industrial & Applied Mathematics (SIAM) in SIAM Journal on Computing
- Vol. 25 (2) , 291-311
- https://doi.org/10.1137/s0097539792235906
Abstract
An upward plane drawing of a directed acyclic graph is a plane drawing of the digraph in which each directed edge is represented as a curve monotone increasing in the vertical direction. Thomassen has given a nonalgorithmic, graph-theoretic characterization of those directed graphs with a single source that admit an upward plane drawing. This paper presents an efficient algorithm to test whether a given single-source acyclic digraph has an upward plane drawing and, if so, to find a representation of one such drawing. This result is made more significant in light of the recent proof by Garg and Tamassia that the problem is NP-complete for general digraphs. The algorithm decomposes the digraph into biconnected and triconnected components and defines conditions for merging the components into an upward plane drawing of the original digraph. To handle the triconnected components, we provide a linear algorithm to test whether a given plane drawing of a single-source digraph admits an upward plane drawing with the same faces and outer face, which also gives a simpler, algorithmic proof of Thomassen's result. The entire testing algorithm (for general single-source directed acyclic graphs) operates in $O(n^2)$ time and $O(n)$ space ($n$ being the number of vertices in the input digraph) and represents the first polynomial-time solution to the problem.
Keywords
This publication has 15 references indexed in Scilit:
- Bipartite graphs, upward drawings, and planarityInformation Processing Letters, 1990
- Algorithms for plane representations of acyclic digraphsTheoretical Computer Science, 1988
- Fundamentals of planar ordered setsDiscrete Mathematics, 1987
- Testing for the consecutive ones property, interval graphs, and graph planarity using PQ-tree algorithmsJournal of Computer and System Sciences, 1976
- Planar lattices and planar graphsJournal of Combinatorial Theory, Series B, 1976
- Planar LatticesCanadian Journal of Mathematics, 1975
- Efficient Planarity TestingJournal of the ACM, 1974
- Dividing a Graph into Triconnected ComponentsSIAM Journal on Computing, 1973
- Depth-First Search and Linear Graph AlgorithmsSIAM Journal on Computing, 1972
- Convex mapsProceedings of the American Mathematical Society, 1951