Ton Hospel > Graph-Layout-Aesthetic > Graph::Layout::Aesthetic::Force::NodeEdgeRepulsion

Download:
Graph-Layout-Aesthetic-0.12.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  1
View/Report Bugs
Module Version: 0.02   Source  

NAME ^

Graph::Layout::Aesthetic::Force::NodeEdgeRepulsion - Nodes and edges repel each other

SYNOPSIS ^

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

DESCRIPTION ^

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 not place nodes close to edges. It does this by imagining a line through the edge endpoints and finding the point on the line closest to the node under consideration. If this point is between the two edge endpoints there is a force between them that's the inverse of their distance.

METHODS ^

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

EXPORT ^

None.

SEE ALSO ^

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

AUTHOR ^

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

COPYRIGHT AND LICENSE ^

Copyright (C) 2004 by Ton Hospel

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.6.1 or, at your option, any later version of Perl 5 you may have available.

Much of the underlying XS code is derived from C code copyrighted by D. Stott Parker, who released it under the GNU GENERAL PUBLIC LICENSE (version 1).

syntax highlighting: