GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  GRAPH::WRITER::GRAPHVIZ (3)

.ds Aq ’

NAME

Graph::Writer::GraphViz - GraphViz Writer for Graph object

CONTENTS

SYNOPSIS



  my @v = qw/Alice Bob Crude Dr/;
  my $g = Graph->new(@v);

  my $wr = Graph::Writer::GraphViz->new(-format => dot);
  $wr->write_graph($g,/tmp/graph.simple.dot);

  my $wr_png = Graph::Writer::GraphViz->new(-format => png);
  $wr_png->write_graph($g,/tmp/graph.simple.png);

  Graph::Writer::GraphViz->new(
        -format => png,
        -layout => twopi,
        -ranksep => 1.5,
        -fontsize => 8
        -edge_color => grey,
        -node_color => black,
       )->write_graph($g,/tmp/graph.png);



DESCRIPTION

<B>Graph::Writer::GraphVizB> is a class for writing out a Graph object with GraphViz module. All GraphViz formats should be supported without a problem.

METHODS

new()

Unlike other <B>Graph::WriterB> modules, this module provide an extra parameter ’-format’ to new() method, in order to save different format. Other supported GraphViz parameters are -layout, -ranksep, -shape, -fontsize, -arrowsize. Please see the SYNOPSIS for example usage.

Valid format depends on those GraphViz <B>as_fmtB> methods on your system, like, ’gif’ if you have ’as_gif’, ’text’ if you can do ’as_text’.

SEE ALSO

Graph, Graph::Writer, GraphViz

CREDITS

Thanks for RURBAN@cpan.org for noticing tests failure on different platforms.

COPYRIGHT

Copyright 2004 by Kang-min Liu <gugod@gugod.org>.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

See <http://www.perl.com/perl/misc/Artistic.html>

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 GRAPH::WRITER::GRAPHVIZ (3) 2011-10-16

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.