Performs triangular layout on simple, connected graphs.
Namespace: com.mindfusion.diagramming
Package: com.mindfusion.diagramming
Java Copy Code |
---|
public class TriangularLayout extends AbstractLayout |
TriangularLayout places nodes on a virtual grid, such that if the source graph is planar, all links are guaranteed to have a single segment and not intersect. If the graph is not planar, its intersecting links can be optionally segmented and bended in order to improve readability. The layout method places the nodes from the external face on a triangle and recursively adds the rest of the nodes as vertices of internal triangles. As a result, it is very effective for near maximal-planar (a.k.a. triangular) graphs.
java.lang.Object
com.mindfusion.diagramming.AbstractLayout
com.mindfusion.diagramming.TriangularLayout