Graph::Easy::Layout(3pm) User Contributed Perl Documentation Graph::Easy::Layout(3pm)NAME
Graph::Easy::Layout - Layout the graph from Graph::Easy
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" contains just the actual layout code for Graph::Easy.
METHODS
"Graph::Easy::Layout" injects the following methods into the "Graph::Easy" namespace:
layout()
$graph->layout();
Layout the actual graph.
_assign_ranks()
$graph->_assign_ranks();
Used by "layout()" to assign each node a rank, so they can be sorted and grouped on these.
_optimize_layout
Used by "layout()" to optimize the layout as a last step.
EXPORT
Exports nothing.
SEE ALSO
Graph::Easy.
AUTHOR
Copyright (C) 2004 - 2008 by Tels <http://bloodgate.com>
See the LICENSE file for information.
perl v5.14.2 2011-12-23 Graph::Easy::Layout(3pm)
Check Out this Related 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)
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)
Hi there,
Could you please help me with that ?
I want to grep a specific string in an .xml file and then rename the file according to the string I found.
How can I do that for many files. Because all the files have similar names but different time stamps I want to name them so it's easy to... (8 Replies)
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)
I have a file name in this format
ABC_WIRE_TRANS_YYYYMMDD_00.DAT
I need to cut out the _00 out of the file name everytime. It could be _00, _01,_02, etc ....
How do I cut it out to look as follows?
ABC_WIRE_TRANS_YYYYMMDD.DAT (6 Replies)
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)
Hi to all,
first of all,i am working on MINIX 3 OS.
I want to create a bash script file,which will create a list of files(not directories) that have been modified one specific day (i.e today) under my home directory.
thank you very much!! :) (8 Replies)
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)
HI,
I require only the file name and the user information from the ls output into a file. The layout of the file is already defined as:
User id is in the first 7 bytes
FName is in the next 50 bytes
Assuming that user id is less than or = 7 bytes and
File name is less than or = 50 bytes... (5 Replies)
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)
How to code shell script to know if the file in a dirctory is empty i.e., zero byte then not to execute any graph.Please help on this thanks in advance.
---------- Post updated at 08:18 AM ---------- Previous update was at 08:14 AM ----------
I know if clause wil help.my question is how to... (7 Replies)
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)
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)
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
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)
Hey guys,
ive been working on this for about 2hrs now - without any solution.
At first I need to say I dont have skills in linux bash scripting, but I tried to use some codesnippets and manuals from google.
What I want to do:
I have different folders including 2 different filestypes with... (15 Replies)