| Graph-Layout-Aesthetic documentation | Contained in the Graph-Layout-Aesthetic distribution. |
Graph::Layout::Aesthetic::Force::NodeRepulsion - Nodes repel each other
use Graph::Layout::Aesthetic;
$aglo = Graph::Layout::Aesthetic->new($topology);
$aglo->add_force("NodeRepulsion", 1);
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 nodes repel each other with force that's inverse to their distance.
This class inherits from Graph::Layout::Aesthetic::Force and adds no methods of its own.
None.
Ton Hospel, <Graph-Layout-Aesthetic@ton.iguana.be>
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 (perlxs) code is derived from C code copyrighted by D. Stott Parker, who released it under the GNU GENERAL PUBLIC LICENSE (version 1).
| Graph-Layout-Aesthetic documentation | Contained in the Graph-Layout-Aesthetic distribution. |
package Graph::Layout::Aesthetic::Force::NodeRepulsion; use 5.006001; use strict; use warnings; our $VERSION = '0.02'; use base qw(Graph::Layout::Aesthetic::Force); __PACKAGE__->new->register; 1; __END__