File: README

package info (click to toggle)
libgraph-readwrite-perl 2.10-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 256 kB
  • sloc: perl: 1,853; xml: 14; makefile: 2
file content (66 lines) | stat: -rw-r--r-- 1,851 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66

			Graph-ReadWrite

This is a collection of perl classes for reading and writing
directed graphs in a variety of file formats. The graphs are
represented in Perl using Jarkko Hietaniemi's Graph classes.
Version 2+ of this distribution works with version 0.5 and
later of the Graph distribution.

There are two base classes:

	Graph::Reader
	Base class for classes which read a graph
	file and create an instance of the Graph class.

	Graph::Writer
	Base class for classes which take an instance of the
	Graph class and write it out in a specific file format.

This distribution also defines a simple XML format for storing
directed graphs, defined to meet the needs of the Graph class.
A reader and writer are provided for this:

	Graph::Reader::XML
	Graph::Writer::XML

Writers are also included for Dot, VCG, and daVinci,
two packages for displaying / rendering graphs.
Dot and VCG are freely available; daVinci is freely available
at the moment, but that is going to change soon.

	Graph::Writer::Dot
	Graph::Writer::VCG
	Graph::Writer::daVinci

A reader for Dot files has been contributed by Mark Hillebrand:

	Graph::Reader::Dot

A reader and writer for HTK lattices are also included:

	Graph::Reader::HTK
	Graph::Writer::HTK

These last two will probably only be of interest to people working
with HTK, or tools which use the same format.

Dependencies:
	Graph		Jarkko's Graph classes
	XML::Parser	used by Graph::Reader::XML
	XML::Writer	used by Graph::Writer::XML
	IO::File

To install these modules, you should just have to run the following:

	% perl Makefile.PL
	% make
	% make test
	% make install

This distribution contains an early version of a test-suite;
you may get a warning about an undefined value from one of the tests.

Bugs, suggestions, and new readers and writers will be gratefully received.

Neil Bowers <neil@bowers.com>