Overlap-Free Drawing of Generalized Pythagoras Trees for Hierarchy Visualization

Tanja Munz, Michael Burch, Toon van Benthem, Yoeri Poels, Fabian Beck, Daniel Weiskopf

Introduction

Generalized Pythagoras Trees are a compelling choice for visualizing complex hierarchies, such as biological taxonomies or file systems, due to their organic, fractal-like aesthetics. By recursively placing squares where the size represents a data attribute, these trees provide an intuitive sense of both topology and quantitative weight. However, the traditional algorithm often results in significant branch overlap, creating a cluttered "tangle" that hides critical data. Researchers from the University of Stuttgart, Eindhoven University of Technology, and the University of Duisburg-Essen have proposed a novel solution using force-directed layout principles to ensure these trees remain overlap-free.

The Overlap Problem

In a standard generalized Pythagoras tree, child nodes are positioned along the circumference of a semicircle. As the tree grows in depth or width, sub-hierarchies frequently compete for the same coordinate space. This spatial conflict makes it impossible to distinguish between different branches in large datasets, effectively breaking the visualization's utility for deep hierarchies.

Comparison of standard overlapping layouts (top) and the proposed overlap-free layouts (bottom) across various tree types.

Methodology: Elliptical Flexibility and Force-Directed Logic

The core innovation of this research is a two-step modification to the traditional drawing algorithm:

  1. From Circles to Ellipses: The algorithm replaces the fixed semicircle with a semi-ellipse. This introduces a vertical semi-axis parameter, $b$, which allows the layout to be "stretched" or "compressed" as needed to resolve spatial conflicts.
  2. Force-Directed Optimization: The layout is refined through an iterative process. A quadtree is used to detect collisions between squares. When a collision is identified, a "Push Force" is applied to the first common ancestor, increasing its $b$ parameter to spread the branches. Simultaneously, a "Pull Force" narrows the nodes on the path to the collision to create more room. A small "Neutral Force" constantly pulls the $b$ parameter back toward 1 to maintain the traditional circular aesthetic where possible.
Geometric construction of the tree using an ellipse with adjustable parameter $b$ and branching angles $\alpha$.

Key Results

The authors evaluated their approach using massive real-world datasets, including the NCBI Taxonomy Tree (324,269 nodes) and local file system hierarchies. The results demonstrate the algorithm's effectiveness:

  • Total Overlap Removal: The algorithm successfully resolved 100% of overlaps in all tested datasets.
  • Computational Efficiency: For the NCBI Taxonomy tree, which initially contained over 50,000 collisions, the algorithm reached a stable, overlap-free state in just 155 iterations. The number of collisions was found to follow a negative exponential decay curve, meaning most overlaps are resolved very quickly.
  • Aesthetic Preservation: Despite the stretching, the trees maintain their iconic "broccoli-like" appearance, which is often preferred for its psychological appeal over rigid node-link diagrams.

Conclusion and Future Work

By transforming the static circular layout into a dynamic elliptical one, the researchers have made Pythagoras trees a viable tool for large-scale data visualization. While the resulting trees require a larger screen footprint, the gain in legibility is absolute. Future work will explore formal mathematical proofs for termination and the integration of interactive refinement tools to allow users to manually nudge branches for specific points of interest.

Summary updated

BibTeX
@inproceedings{munz2019overlap,
  author = {Tanja Munz and Michael Burch and Toon van Benthem and Yoeri Poels and Fabian Beck and Daniel Weiskopf},
  title = {{Overlap-Free Drawing of Generalized Pythagoras Trees for Hierarchy Visualization}},
  booktitle = {IEEE VIS (Short Papers)},
  year = {2019},
  url = {https://openreview.net/forum?id=h8O5PStjiSd},
}
Figure