Related Experiment Video
Updated: Aug 12, 2025

Self-assembly of Complex Two-dimensional Shapes from Single-stranded DNA Tiles
Published on: May 8, 2015
Shuffle & untangle: novel untangle methods for solving the tanglegram layout problem
Nghia Nguyen1, Kurdistan Chawshin1, Carl Fredrik Berg1
1Department of Geoscience and Petroleum, NTNU, 7031 Trondheim, Norway.
Motivation:
A tanglegram is a plot of two-tree-like diagrams, one facing the other, and having their labels connected by inter-tree edges. These two trees, which could be both phylogenetic trees and dendrograms stemming from hierarchical clusterings, have thus identically labelled leaves but different topologies. As a result, the inter-tree edges of a tanglegram can be intricately tangled and difficult to be analysed and explained by human readers. To better visualize the tanglegram (and thus compare the two dendrograms) one may try to untangle it, i.e. search for that series of flippings of the various branches of the two trees that minimizes the number of crossings among the inter-tree edges. The untanglement problem has received significant interest in the past decade, and several techniques have been proposed to address it. These techniques are computationally efficient but tend to fail at finding the global optimum configuration generating the least tangly tanglegram.
Results:
We leverage the existing results to propose untanglement methods that are characterized by an overall slower convergence method than the ones in the literature, but that produce tanglegrams with lower entanglements.
Availability And Implementation:
One of the algorithms is implemented in Python, and available from https://github.com/schlegelp/tanglegram.
Related Concept Videos
Vector Algebra: Graphical Method
We use the laws of geometry to construct resultant vectors, followed by trigonometry to find vector magnitudes and directions. For a geometric construction of the sum of two vectors in a plane, we follow the parallelogram rule. Suppose two vectors are at arbitrary positions. Translate either one of...
Theorems of Pappus and Guldinus: Problem Solving
Castigliano's Theorem: Problem Solving
Normal and Tangetial Components: Problem Solving
Angle of Twist: Problem Solving
Space Trusses: Problem Solving
Consider a tripod consisting of a tetrahedral space truss with a ball-and-socket joint at C. Suppose the height and lengths of the horizontal and vertical...

