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

.ds Aq ’

NAME

Graph::Reader::XML - class for reading a Graph instance from XML

CONTENTS

SYNOPSIS



  use Graph::Reader::XML;
  use Graph;

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



DESCRIPTION

<B>Graph::Reader::XMLB> is a perl class used to read a directed graph stored as XML, and return an instance of the <B>GraphB> class.

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,

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

METHODS

new()

Constructor - generate a new reader instance.



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



This doesn’t take any arguments.

read_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.

KNOWN BUGS

Attribute values must be scalar. If they’re not, well, you’re on your own.

SEE ALSO

Graph::Reader The base class for <B>Graph::Reader::XMLB>.
Graph::Writer::XML Used to serialise a Graph instance as XML.
Graph Jarkko Hietaniemi’s classes for representing directed graphs.

REPOSITORY

<https://github.com/neilb/Graph-ReadWrite>

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 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::XML (3) 2015-10-30

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