Query: graph::easy::layout::force
OS: debian
Section: 3pm
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
Graph::Easy::Layout::Force(3pm) User Contributed Perl Documentation Graph::Easy::Layout::Force(3pm)NAMEGraph::Easy::Layout::Force - Force-based layouter for Graph::EasySYNOPSISuse 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.EXPORTExports nothing.SEE ALSOGraph::Easy.METHODSThis module injects the following methods into Graph::Easy: _layout_force() Calculates the node position with a force-based method.AUTHORCopyright (C) 2004 - 2007 by Tels <http://bloodgate.com>. See the LICENSE file for information. perl v5.14.2 2011-12-23 Graph::Easy::Layout::Force(3pm)
Similar Topics in the Unix Linux Community |
---|
Easy AIML builder for Gollum! |
Easy AWK question |
Making Large Connection nodes for Graph |
calculate logical layout values for hdd |
prolog scripting |