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)
Check Out this Related Man Page
Graph::Easy::Group::Cell(3pm) User Contributed Perl Documentation Graph::Easy::Group::Cell(3pm)NAME
Graph::Easy::Group::Cell - A cell in a group
SYNOPSIS
use Graph::Easy;
my $ssl = Graph::Easy::Edge->new( );
$ssl->set_attributes(
label => 'encrypted connection',
style => '-->',
color => 'red',
);
$graph = Graph::Easy->new();
$graph->add_edge('source', 'destination', $ssl);
print $graph->as_ascii();
DESCRIPTION
A "Graph::Easy::Group::Cell" represents a cell of a group.
Group cells can have a background and, if they are on the outside, a border.
There should be no need to use this package directly.
METHODS
error()
$last_error = $group->error();
$group->error($error); # set new messags
$group->error(''); # clear error
Returns the last error message, or '' for no error.
as_ascii()
my $ascii = $cell->as_ascii();
Returns the cell as a little ascii representation.
as_html()
my $html = $cell->as_html($tag,$id);
Returns the cell as HTML code.
label()
my $label = $cell->label();
Returns the name (also known as 'label') of the cell.
class()
my $class = $cell->class();
Returns the classname(s) of this cell, like:
group_cities gr gb
for a cell with a bottom (gb) and right (gr) border in the class "cities".
EXPORT
None.
SEE ALSO
Graph::Easy.
AUTHOR
Copyright (C) 2004 - 2007 by Tels <http://bloodgate.com>.
See the LICENSE file for more details.
perl v5.14.2 2011-12-23 Graph::Easy::Group::Cell(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 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 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)
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)
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)
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)
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)
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)
This seems like an easy question, but I can't find an answer already posted.
I want a command to return all of the lines in a file containing exactly a string
I tried
grep -x "372701" x.txt
but this did not return anything
I am just trying to search a file for lines which contain... (4 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
15. 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)