Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

graph::easy::layout::force(3pm) [debian man page]

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

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.2 2011-12-23 Graph::Easy::Layout::Force(3pm)

Check Out this Related Man Page

Graph::Easy::Layout::Grid(3pm)				User Contributed Perl Documentation			    Graph::Easy::Layout::Grid(3pm)

NAME
Graph::Easy::Layout::Grid - Grid management and size calculation SYNOPSIS
use Graph::Easy; my $graph = Graph::Easy->new(); my $bonn = Graph::Easy::Node->new( name => 'Bonn', ); my $berlin = Graph::Easy::Node->new( name => 'Berlin', ); $graph->add_edge ($bonn, $berlin); $graph->layout(); print $graph->as_ascii( ); # prints: # +------+ +--------+ # | Bonn | --> | Berlin | # +------+ +--------+ DESCRIPTION
"Graph::Easy::Layout::Grid" contains routines that calculate cell sizes on the grid, which is necessary for ASCII, boxart and SVG output. Used automatically by Graph::Easy. EXPORT
Exports nothing. SEE ALSO
Graph::Easy. METHODS
This module injects the following methods into Graph::Easy: _prepare_layout() my ($rows,$cols,$max_x,$max_y, @V) = $graph->_prepare_layout(); Returns two hashes ($rows and $cols), containing the columns and rows of the layout with their nec. sizes (in chars) plus the maximum framebuffer size nec. for this layout. Also returns reference of a list of all cells to be rendered. AUTHOR
Copyright (C) 2004 - 2006 by Tels <http://bloodgate.com>. See the LICENSE file for information. perl v5.14.2 2011-12-23 Graph::Easy::Layout::Grid(3pm)
Man Page

14 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Easy one

Hi This is going to sound so easy to some of you out there... trying to copy and paste lines to an existing script - is there a command that i can use that overwrites the existing text there? Cheers (11 Replies)
Discussion started by: vcardo10
11 Replies

2. Shell Programming and Scripting

Easy AWK question

Ive got some output in a file that looks exactly like this: 1 ----------- 1542 1 record(s) selected. How do I just extract that 1542 and drop it into another file or (preferrably) a variable (using a ksh script) (9 Replies)
Discussion started by: rdudejr
9 Replies

3. Shell Programming and Scripting

Get line form file by line number

I want to get a specific line form file by line number. For example I have file named bla File looks like this cat bla Madrid Paris Berlin Vladivostok I want to put line 3 (Berlin) into variable X. How to do that? (3 Replies)
Discussion started by: corny
3 Replies

4. UNIX for Dummies Questions & Answers

Easy sed question?

I have a line like: "Jun 19 12:56:22 routername 45454:" I want to keep all information except the seconds of the time. I tried: sed 's/..:..:../..:../g' but apparently I'm on the wrong track, because although that matches on the time, it replaces it with the literal ..:.. How... (6 Replies)
Discussion started by: earnstaf
6 Replies

5. Shell Programming and Scripting

Easy unix/sed question that I could have done 10 years ago!

Hi all and greetings from Ireland! I have not used much unix or awk/sed in years and have forgotten a lot. Easy enough query tho. I am cleansing/fixing 10,000 postal addresses using global replacements. I have 2 pipe delimited files , one is basically a spell checker for geographical... (4 Replies)
Discussion started by: dewsbury
4 Replies

6. Shell Programming and Scripting

Making Large Connection nodes for Graph

Hi power user, Basically, this thread is a continuation of the previous one :): https://www.unix.com/shell-programming-scripting/110650-making-connection-nodes-graph.html#post302326483 However, I'm going to explain it again. I have this following data: file1 aa A ... (3 Replies)
Discussion started by: anjas
3 Replies

7. Shell Programming and Scripting

Easy Perl Question

How can I write a perl script to always only grab everything that is after Service: and before State: Service Transition - Service:jatthlink_jmsay_1 State:alive (4 Replies)
Discussion started by: SkySmart
4 Replies

8. AIX

Description Graph excel NMON

Bonjour, Après avoir découvert Nmon puis la macro excel, je souhaite comprendre la description de graphe _________________ SYS_SUMM CPU% ??? IO/sec ??? _________________ CPU_ALL User% ??? Sys% ??? Wait% ??? _________________ DISK_SUMM Disk Read KB/s = Lecture disk en kilo bytes... (6 Replies)
Discussion started by: stephane99
6 Replies

9. Shell Programming and Scripting

FS Growth Graph

It's been a while since i've been here.. and hopefully you can help me. I have created a script to get the filesystem utilization. Now i want to create a growth graph, which would show how much kb we increase per day. Here's the data 03-02-2010 00:00:00: /dev/md/dsk/d30 46473377 7355320... (5 Replies)
Discussion started by: ryandegreat25
5 Replies

10. UNIX for Advanced & Expert Users

calculate logical layout values for hdd

Please advice me how to calculate logical layout values in hdd from below table. Physical Layout ----------------- Bytes per Sector : 512 Sectors per Track : 480-1272 Number of Heads : 4 Number of Disks : 2 Logical Layout --------------- Number of Heads : 16 Number of Sectors /... (9 Replies)
Discussion started by: presul
9 Replies

11. Shell Programming and Scripting

prolog scripting

I am running a tool in prolog and after the running is finished i have the fllowing result: Graph Size statistics: Nodes = 1 Abstract Edges = 0 Cases = 1 -- Pruning outputs -- -- Print pruned output- (clock-2) MDGs options -- No printing (Return) / Statistics only (%) / To... (5 Replies)
Discussion started by: ghaith
5 Replies

12. Shell Programming and Scripting

Automatic generate 3D pie Graph

Hello all, I need the scripts automatic generate 3D pie Graph. What I have now is as below: Run at terminal by $ CMD R BATCH graph.R # 3D Exploded Pie Chart library(plotrix) slices <- c(20, 15, 4, 15, 8) lbls <- c("Media", "Document", "DB", "Others", "Available") pct <-... (5 Replies)
Discussion started by: sheikh76
5 Replies

13. Shell Programming and Scripting

Easy VI Question (I hope)

Hi, I've FTPed some text files from windows to my Linux workstation. I'm finding that the characters for quotes (") have been replaced with control characters <93> and <94>. and apostrophes (') have been replaced with what looks like control character <92>. I have attempted the following... (15 Replies)
Discussion started by: larryjmoon
15 Replies

14. Post Here to Contact Site Administrators and Moderators

"UNIX.com is not a free scriptwriting service"

I saw this posted a few days ago by corona688. I've been on the forums a few months. It's really great. But at least some of the posters do seem to use it as a free scriptwriting service. That seems maybe a wrong use of the forum. Also, I would suggest when the poster is just given the answer,... (9 Replies)
Discussion started by: hanson44
9 Replies