GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Graph::Easy::Layout::Force(3) User Contributed Perl Documentation Graph::Easy::Layout::Force(3)

Graph::Easy::Layout::Force - Force-based layouter for Graph::Easy

        use Graph::Easy;

        my $graph = Graph::Easy->new();

        $graph->add_edge ('Bonn', 'Berlin');
        $graph->add_edge ('Bonn', 'Ulm');
        $graph->add_edge ('Ulm', 'Berlin');

        $graph->layout( type => 'force' );

        print $graph->as_ascii( );

        # prints:

        #   +------------------------+
        #   |                        v
        # +------+     +-----+     +--------+
        # | Bonn | --> | Ulm | --> | Berlin |
        # +------+     +-----+     +--------+

"Graph::Easy::Layout::Force" contains routines that calculate a force-based layout for a graph.

Nodes repell each other, while edges connecting them draw them together.

The layouter calculates the forces on each node, then moves them around according to these forces until things have settled down.

Used automatically by Graph::Easy.

Exports nothing.

Graph::Easy.

This module injects the following methods into Graph::Easy:

Calculates the node position with a force-based method.

Copyright (C) 2004 - 2007 by Tels <http://bloodgate.com>.

See the LICENSE file for information.

2016-06-06 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.