Graph-Simple
============

This module let's you create graphs (nodes/vertices connected by edges/arcs,
not pie charts!) and then lay them out on a flat surface.

Once laid out, the graph can be converted into various output formats like
ASCII art, HTML or SVG. You can also output the graph in graphviz format
and let dot do the layout for you.

Graphs can be generated by Perl code, or parsed from a simple text format
that is human readable and maintainable.

For instance this input:

	[ Bonn ] -> [ Berlin ]
	[ Berlin -> [ Frankfurt ] { border: 1px dotted black; }
	[ Frankfurt ] -> [ Dresden ]
	[ Berlin ] -> [ Potsdam ]
	[ Potsdam ] => [ Cottbus ]

would be rendered in ASCII as:

	+------+     +--------+      .............     +---------+
	| Bonn | --> | Berlin |  --> : Frankfurt : --> | Dresden |
	+------+     +--------+      .............     +---------+
	               |
	               |
	               v
	             +---------+     +---------+
	             | Potsdam | ==> | Cottbus |
	             +---------+     +---------+

The HTML output would look similiar except be more pretty :o)

Examples
========

Run the following examples:

ASCII output
------------

	perl examples/ascii.pl

HTML output
-----------

Open test.html afterwards in your favourite browser:

	perl examples/html.pl >test.html

Many more examples and documentation, especially on integrating this into
a Mediawiki installation, can be found at:

	http://bloodgate.com/perl/graph/

Have fun!

Installation
============

See INSTALL on how to install this module.

AUTHOR
======

Copyright (C) 2004 - 2005 by Tels http://bloodgate.com/

This library is free software; you can redistribute it and/or modify
it under the same terms of the GPL.

