Graph::Writer::XML(3pm) User Contributed Perl Documentation Graph::Writer::XML(3pm)NAME
Graph::Writer::XML - write out directed graph as XML
SYNOPSIS
use Graph;
use Graph::Writer::XML;
$graph = Graph->new();
# add edges and nodes to the graph
$writer = Graph::Writer::XML->new();
$writer->write_graph($graph, 'mygraph.xml');
DESCRIPTION
Graph::Writer::XML is a class for writing out a directed graph in a simple XML format. The graph must be an instance of the Graph class,
which is actually a set of classes developed by Jarkko Hietaniemi.
The XML format is designed to support the Graph classes: it can be used to represent a single graph with a collection of nodes, and edges
between those nodes. The graph, nodes, and edges can all have attributes specified, where an attribute is a (name,value) pair, with the
value being scalar.
METHODS
new()
Constructor - generate a new writer instance.
$writer = Graph::Writer::XML->new();
This doesn't take any arguments.
write_graph()
Write a specific graph to a named file:
$writer->write_graph($graph, $file);
The $file argument can either be a filename, or a filehandle for a previously opened file.
KNOWN BUGS
Attribute values must be scalar. If they're not, well, you're on your own.
SEE ALSO
XML::Writer
The perl module used to actually write out the XML. It handles entities etc.
Graph
Jarkko Hietaniemi's modules for representing directed graphs, available from CPAN under modules/by-module/Graph/
Algorithms in Perl
The O'Reilly book which has a chapter on directed graphs, which is based around Jarkko's modules.
Graph::Writer
The base-class for Graph::Writer::XML
AUTHOR
Neil Bowers <neil@bowers.com>
COPYRIGHT
Copyright (c) 2001-2012, Neil Bowers. All rights reserved. Copyright (c) 2001, Canon Research Centre Europe. All rights reserved.
This script is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.14.2 2012-02-14 Graph::Writer::XML(3pm)
Check Out this Related Man Page
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)
Here is response from HP-s support service:
"""
I understand that you need information, whether you can use your
CD-Writer on parallel port with HP-UX 11.00 Operating system and you need compatible
software for creating CDs.
HP does not support the HP CD-Writer parallel port on... (1 Reply)
Hi, guys !
I have a server that runs FreeBSD 5.3 and on that server a have a CD-Writer used for backup. The question is, does anybody know how can I share this CD-Writer ? I want to be able to write CDs from another computer, without transfering all the data to the server and after that use all... (2 Replies)
I'm trying to configure Openserver 6 with a NEC DVD writer to use as a backup - the DVD writer was originally installed as /dev/cd0 and installed the operating system.
How do I mount the DVD writer and what command and mount point should I use?
What program is available to support writing to... (2 Replies)
Hi folks,
I'm a bit of a novice at this but here goes. I want to read in nodes from an XML file, and map the path to each.
eg the file is structured
<node><nodename>.</nodename>
<node><nodename>topnode</nodename>
<node><nodename>subnode1</nodename></node>
... (1 Reply)
Hi Everyone,
Would like to know some hints where should I look for, if I want to do the perl with excel graph staff, i read some people say can use GD:Graph, would please give me some guide on where should I search for, which keyword should I put into google to search.
Thanks (1 Reply)
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)
CPAN provide xml::simple module which can be used to generate XML files.
can i use this module in shell scripting? how? plzz give me an example to generate xml file using this module . you can also use some other module..
BUT SHELL SCRIPTING SHOULD ONLY BE USED (4 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)
Hi,
I am using perl 5.12. I want to install XML modules and Excel modules which is from perl in windows.
I am using ppm to install these perl modules.
My proxy is this: mtd.ixs.ibab.com/proxy.pac (with http in the beginning)
I used this to set but i unable to download any pakage, Using... (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 need to generate graph from the text file in Unix server.
The file contains the following data,
Fri Feb 03 07:01:00 PST 2012|3325
Fri Feb 03 07:02:00 PST 2012|3349
Fri Feb 03 07:03:00 PST 2012|3290
Fri Feb 03 07:04:00 PST 2012|3496
Fri Feb 03 07:05:00 PST 2012|3362
Fri Feb 03 07:06:00... (2 Replies)
Hi Friends,
I need to generate a graph in on the basis of data available in csv file in unix.
Please let me know how to generate the graph.
Thanks
Mayank (4 Replies)
Need assistance in getting a monitoring script to create Grpahs Using GNUPLOT using below data.
Graph for CPU, MEMORY , NETWORK in png. For memory can we convert the GB TO MB
----system---- ----total-cpu-usage---- ------memory-usage----- -net/total-
time |usr sys idl wai hiq... (5 Replies)