Graph::Layout::Aesthetic::Force::MinEdgeIntersect2 - Try to make edges uncross, stronger version


Graph-Layout-Aesthetic documentation Contained in the Graph-Layout-Aesthetic distribution.

Index


Code Index:

NAME

Top

Graph::Layout::Aesthetic::Force::MinEdgeIntersect2 - Try to make edges uncross, stronger version

SYNOPSIS

Top

  use Graph::Layout::Aesthetic;
  $aglo = Graph::Layout::Aesthetic->new($topology);
  $aglo->add_force("MinEdgeIntersect2", 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 crossed edge midpoints repel each other with force linear in the distance. The code only works in two dimensions, so it will throw an exception if you try to associate this force with a layout that's not two-dimensional.

The old aglo documentation describes this aesthetic as using a constant force, but that's actually not what the code does.

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, Graph::Layout::Aesthetic::Force::MinEdgeIntersect

AUTHOR

Top

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

COPYRIGHT AND LICENSE

Top


Graph-Layout-Aesthetic documentation Contained in the Graph-Layout-Aesthetic distribution.

package Graph::Layout::Aesthetic::Force::MinEdgeIntersect2;
use 5.006001;
use strict;
use warnings;

our $VERSION = '0.02';
use base qw(Graph::Layout::Aesthetic::Force);

__PACKAGE__->new->register;

1;
__END__