Tulip Plugins
Public Member Functions
TreeLeaf Class Reference

An implementation of a simple tree layout. More...

#include <TreeLeaf.h>

List of all members.

Public Member Functions

 TreeLeaf (const tlp::PropertyContext &)
 ~TreeLeaf ()
bool run ()

Detailed Description

An implementation of a simple tree layout.

This plugin is an implementation of a simple tree layout. All leaves are placed at a distance one (x-coordinates) and the order is the one of a suffix ordering. The y coordinates is the depth in the tree. The other nodes are placed at the center of their children (x-coordinates), and the y-coordinate is their depth in the tree.

HISTORY

Note:
Let n be the number of nodes, the algorithm complexity is in O(n).
Author:
David Auber University Bordeaux I France: Email:auber@tulip-software.org

Constructor & Destructor Documentation

TreeLeaf::TreeLeaf ( const tlp::PropertyContext &  context)
TreeLeaf::~TreeLeaf ( )

Member Function Documentation

bool TreeLeaf::run ( )