Graph::Easy::Layout::Force man page on Fedora

Man page or keyword search:  
man Server   31170 pages
apropos Keyword Search (all sections)
Output format
Fedora logo
[printable version]

Graph::Easy::Layout::FUser(Contributed Perl DocumGraph::Easy::Layout::Force(3)

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

SYNOPSIS
	       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 |
	       # +------+     +-----+	  +--------+

DESCRIPTION
       "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.

EXPORT
       Exports nothing.

SEE ALSO
       Graph::Easy.

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

   _layout_force()
       Calculates the node position with a force-based method.

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

       See the LICENSE file for information.

perl v5.14.1			  2010-11-05	 Graph::Easy::Layout::Force(3)
[top]

List of man pages available for Fedora

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net