Graph::Reader::Dot(3pm) | User Contributed Perl Documentation | Graph::Reader::Dot(3pm) |
Graph::Reader::Dot - class for reading a Graph instance from Dot format
use Graph::Reader::Dot; use Graph; $reader = Graph::Reader::Dot->new(); $graph = $reader->read_graph('mygraph.dot');
Graph::Reader::Dot 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).
Graph::Reader::Dot is a subclass of Graph::Reader, which defines the generic interface for Graph reader classes.
Constructor - generate a new reader instance.
$reader = Graph::Reader::Dot->new();
This doesn't take any arguments.
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.
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.
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.
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.
Mark A. Hillebrand <mah@wjpserver.cs.uni-sb.de>
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.
2021-09-19 | perl v5.32.1 |