Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

Image Namespace Reference


Detailed Description

PEAR::Image_GraphViz

Purpose

Allows for the creation of and the work with directed and undirected graphs and their visualization with AT&T's GraphViz tools. These can be found at http://www.research.att.com/sw/tools/graphviz/

Example

require_once 'Image/GraphViz.php'; $graph = new Image_GraphViz();

$graph->addNode('Node1', array('URL' => 'http://link1', 'label' => 'This is a label', 'shape' => 'box' ) ); $graph->addNode('Node2', array('URL' => 'http://link2', 'fontsize' => '14' ) ); $graph->addNode('Node3', array('URL' => 'http://link3', 'fontsize' => '20' ) );

$graph->addEdge(array('Node1' => 'Node2'), array('label' => 'Edge Label')); $graph->addEdge(array('Node1' => 'Node2'), array('color' => 'red'));

$graph->image();

Author:
Sebastian Bergmann <sb@sebastian-bergmann.de> Dr. Volker Göbbels <vmg@arachnion.de>


Generated on Mon Jun 7 16:38:07 2004 for Galaxia by doxygen 1.3.4