Graph::Layout::Aesthetic::Force::ParentLeft - Try to place parents to the left of their children


Graph-Layout-Aesthetic documentation  | view source Contained in the Graph-Layout-Aesthetic distribution.

Index


NAME

Top

Graph::Layout::Aesthetic::Force::ParentLeft - Try to place parents to the left of their children

SYNOPSIS

Top

  use Graph::Layout::Aesthetic;
  $aglo = Graph::Layout::Aesthetic->new($topology);
  $aglo->add_force("ParentLeft", 1);

DESCRIPTION

Top

This module provides an aesthetic force for use by the Graph::Layout::Aesthetic package. It's normally implicitly loaded by using add_force.

The aesthetic force is that it tries to place parent nodes at least 5 to the left of child nodes. If nodes are placed so that this condition is not fulfilled, the nodes try to move left or right so it will be with a force that's quadratic in how much their distance on the x-axis is wrong.

METHODS

Top

This class inherits from Graph::Layout::Aesthetic::Force and adds no methods of its own.

EXPORT

Top

None.

SEE ALSO

Top

Graph::Layout::Aesthetic, Graph::Layout::Aesthetic::Force

AUTHOR

Top

Ton Hospel, <Graph-Layout-Aesthetic@ton.iguana.be>

COPYRIGHT AND LICENSE

Top


Graph-Layout-Aesthetic documentation  | view source Contained in the Graph-Layout-Aesthetic distribution.