Drawing non‐layered tidy trees in linear time

The well‐known Reingold–Tilford algorithm produces tidy‐layered drawings of trees: drawings where all nodes at the same depth are vertically aligned. However, when nodes have varying heights, layered drawing may use more vertical space than necessary. A non‐layered drawing of a tree places children at a fixed distance from the parent, thereby giving a more vertically compact drawing. Moreover, non‐layered drawings can also be used to draw trees where the vertical position of each node is given, by adding dummy nodes. In this paper, we present the first linear‐time algorithm for producing non‐layered drawings. Our algorithm is a modification of the Reingold–Tilford algorithm, but the original complexity proof of the Reingold–Tilford algorithm uses an invariant that does not hold for the non‐layered case. We give an alternative proof of the algorithm and its extension to non‐layered drawings. To improve drawings of trees of unbounded degree, extensions to the Reingold–Tilford algorithm have been proposed. These extensions also work in the non‐layered case, but we show that they then cause a O(n2) run‐time. We then propose a modification to these extensions that restores the O(n) run‐time. Copyright © 2013 John Wiley & Sons, Ltd.

[1]  Haim Kaplan,et al.  Purely functional, real-time deques with catenation , 1999, JACM.

[2]  Md. Saidur Rahman,et al.  A linear algorithm for compact box‐drawings of trees , 2003, Networks.

[3]  Youzou Miyadera,et al.  Depth-First Layout Algorithm for Trees , 1998, Inf. Process. Lett..

[4]  Kim Marriott,et al.  Compact Layout of Layered Trees , 2007, ACSC.

[5]  Sven Moen,et al.  Drawing dynamic trees , 1990, IEEE Software.

[6]  Uzi Vishkin,et al.  On Finding Lowest Common Ancestors: Simplification and Parallelization , 1988, AWOC.

[7]  LepourasGeorge,et al.  Ontology visualization methodsa survey , 2007 .

[8]  Michael Jünger,et al.  Drawing rooted trees in linear time , 2006, Softw. Pract. Exp..

[9]  Edward M. Reingold,et al.  Tidier Drawings of Trees , 1981, IEEE Transactions on Software Engineering.

[10]  Kim Marriott,et al.  Hi-Trees and Their Layout , 2011, IEEE Transactions on Visualization and Computer Graphics.

[11]  Ben Shneiderman,et al.  Tree-maps: a space-filling approach to the visualization of hierarchical information structures , 1991, Proceeding Visualization '91.

[12]  Benno Stein,et al.  On the Generalized Box-Drawing of Trees — Survey and New Technology — , 2007 .

[13]  John Q. Walker,et al.  A node‐positioning algorithm for general trees , 1990, Softw. Pract. Exp..

[14]  Jarke J. van Wijk,et al.  Botanical visualization of huge hierarchies , 2001, IEEE Symposium on Information Visualization, 2001. INFOVIS 2001..

[15]  Jock D. Mackinlay,et al.  Cone Trees: animated 3D visualizations of hierarchical information , 1991, CHI.

[16]  Stéphane Ducasse,et al.  Polymetric Views - A Lightweight Visual Approach to Reverse Engineering , 2003, IEEE Trans. Software Eng..

[17]  Ramana Rao,et al.  A focus+context technique based on hyperbolic geometry for visualizing large hierarchies , 1995, CHI '95.

[18]  Charles Wetherell,et al.  Tidy Drawings of Trees , 1979, IEEE Transactions on Software Engineering.

[19]  Mao Lin Huang,et al.  A space-optimized tree visualization , 2002, IEEE Symposium on Information Visualization, 2002. INFOVIS 2002..

[20]  Akrivi Katifori,et al.  Ontology visualization methods—a survey , 2007, CSUR.

[21]  Edward M. Reingold,et al.  The complexity of drawing trees nicely , 2004, Acta Informatica.

[22]  Li Xiaohong,et al.  An improved generalized tree layout algorithm , 2010, 2010 2nd International Asia Conference on Informatics in Control, Automation and Robotics (CAR 2010).

[23]  Jeremy Gibbons,et al.  Deriving Tidy Drawings of Trees , 1996, J. Funct. Program..

[24]  Andrew Kennedy Drawing Trees , 1996, J. Funct. Program..

[25]  Jean G. Vaucher Pretty‐printing of trees , 1980, Softw. Pract. Exp..

[26]  Yanwen Wu,et al.  Proceedings of the 2nd international Asia conference on Informatics in control, automation and robotics - Volume 2 , 2010 .

[27]  Anthony Bloesch,et al.  Aesthetic layout of generalized trees , 1993, Softw. Pract. Exp..