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::READER::DOT (3)

.ds Aq ’

NAME

Graph::Reader::Dot - class for reading a Graph instance from Dot format

CONTENTS

SYNOPSIS



    use Graph::Reader::Dot;
    use Graph;

    $reader = Graph::Reader::Dot->new();
    $graph = $reader->read_graph(mygraph.dot);



DESCRIPTION

<B>Graph::Reader::DotB> is a class for reading in a directed graph in the file format used by the dot tool (part of the AT+T graphviz package).

<B>Graph::Reader::DotB> is a subclass of <B>Graph::ReaderB>, which defines the generic interface for Graph reader classes.

METHODS AND CONFIGURATION

CWnew()

Constructor - generate a new reader instance.



    $reader = Graph::Reader::Dot->new();



This doesn’t take any arguments.

CWread_graph()

Read a graph from a file:



    $graph = $reader->read_graph( $file );



The $file argument can be either a filename or a filehandle of a previously opened file.

CW$Graph::Reader::Dot::UseNodeAttr

Controls, if implicit node attributes given by the dot directive node[] will be merged into (new) nodes. Setting it to 0 or undef (default) will not disable this feature. Setting it to any other value will enable this feature.

CW$Graph::Reader::Dot::UseEdgeAttr

Controls, if implicit edge attributes given by the dot directive edge[] will be merged into edges. Setting it to 0 or undef (default) will not disable this feature. Setting it to any other value will enable this feature.

RESTRICTIONS

o Default (graph) attributes in subgraphs (i.e. inside {}) are not processed.
o Sub nodes as used by dot’s record node shape are supported.
o Undirected graphs will be treated as directed graphs. This means that the -- edge operator works as the -> edge operator.
o Be aware that you are loosing scope information on writing back the graph.
o Multiple node[] or edge[] statements in the same scope are not correctly supported.

SEE ALSO

http://www.graphviz.org/ The home page for the AT+T graphviz toolkit that includes the dot tool.
Graph::Reader The base class for <B>Graph::Reader::DotB>.
Graph::Writer::Dot Used to serialise a Graph instance in Dot format.
Graph Jarkko Hietaniemi’s classes for representing directed graphs.
Parse::Yapp Another base class for <B>Graph::Reader::DotB>. The <B>Parse::YappB> module comes with the following copyright notice:

The Parse::Yapp module and its related modules and shell scripts are copyright (c) 1998-1999 Francois Desarmenien, France. All rights reserved.

You may use and distribute them under the terms of either the GNU General Public License or the Artistic License, as specified in the Perl README file.

If you use the standalone parser option so people don’t need to install Parse::Yapp on their systems in order to run you software, this copyright noticed should be included in your software copyright too, and the copyright notice in the embedded driver should be left untouched.

AUTHOR

Mark A. Hillebrand <mah@wjpserver.cs.uni-sb.de>

COPYRIGHT

Copyright (c) 2001 by Mark A. Hillebrand. All rights reserved.

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

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


perl v5.20.3 GRAPH::READER::DOT (3) 2015-10-30

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