[ Index ]
 

Code source de eGroupWare 1.2.106-2

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/workflow/inc/engine/src/ProcessManager/ -> GraphViz.php (sommaire)

(pas de description)

Poids: 465 lignes (14 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

Process_GraphViz:: (17 méthodes):
  Process_GraphViz()
  set_pid()
  image()
  image_and_map()
  map()
  addCluster()
  addNode()
  removeNode()
  addEdge()
  removeEdge()
  addAttributes()
  setAttributes()
  setDirected()
  load()
  save()
  parse()
  saveParsedGraph()


Classe: Process_GraphViz  - X-Ref

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();

Process_GraphViz($directed = true, $attributes = array()   X-Ref
Constructor

param: boolean Directed (true) or undirected (false) graph.
param: array   Attributes of the graph

set_pid($pid)   X-Ref
Pas de description

image($format = 'png')   X-Ref
Output image of the graph in a given format.

param: string  Format of the output image.

image_and_map($format = 'png')   X-Ref
Pas de description

map()   X-Ref
Pas de description

addCluster($id, $title)   X-Ref
Add a cluster to the graph.

param: string  ID.
param: array   Title.

addNode($name, $attributes = array()   X-Ref
Add a note to the graph.

param: string  Name of the node.
param: array   Attributes of the node.
param: string  Group of the node.

removeNode($name, $group = 'default')   X-Ref
Remove a node from the graph.

param: Name of the node to be removed.

addEdge($edge, $attributes = array()   X-Ref
Add an edge to the graph.

param: array Start and End node of the edge.
param: array Attributes of the edge.

removeEdge($edge)   X-Ref
Remove an edge from the graph.

param: array Start and End node of the edge to be removed.

addAttributes($attributes)   X-Ref
Add attributes to the graph.

param: array Attributes to be added to the graph.

setAttributes($attributes)   X-Ref
Set attributes of the graph.

param: array Attributes to be set for the graph.

setDirected($directed)   X-Ref
Set directed/undirected flag for the graph.

param: boolean Directed (true) or undirected (false) graph.

load($file)   X-Ref
Load graph from file.

param: string  File to load graph from.

save($file = '')   X-Ref
Save graph to file.

param: string  File to save the graph to.
return: mixed   File the graph was saved to, false on failure.

parse()   X-Ref
Parse the graph into GraphViz markup.

return: string  GraphViz markup

saveParsedGraph($file = '')   X-Ref
Save GraphViz markup to file.

param: string  File to write the GraphViz markup to.
return: mixed   File to which the GraphViz markup was



Généré le : Sun Feb 25 17:20:01 2007 par Balluche grâce à PHPXref 0.7