PHP GraphViz文档 [英] PHP GraphViz Documentation
本文介绍了PHP GraphViz文档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有人使用过graphviz-php吗?如果这样,他们是否知道我在哪里可以找到有关其用法/类结构的任何文档?
Has anyone used graphviz-php and if so do they know where I can find any documentation regarding its usage/class structure etc?
请注意,这是graphviz-php,而不是梨(image_graphviz).
Please note that this is the graphviz-php not the pear (image_graphviz).
谢谢
推荐答案
我发现了以下graphviz.php的解释.
I have found an explanation of the graphviz.php as below.
GraphViz类允许使用AT& T的GraphViz工具创建有向图和无向图,并对其进行处理,并使其可视化.
The GraphViz class allows for the creation of and the work with directed and undirected graphs and their visualization with AT&T's GraphViz tools.
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();
这篇关于PHP GraphViz文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文