| ユーザフォーラムで議論/質問 | マニュアル検索 | ハイライト | ハイライトオフ | ポータル | php spot |
A simple graphviz exampleThe following code shows how to use Image_GraphViz the easiest way possible - generate a simple directed graph and send it as SVG image to the browser.
<?php The example above will display in your browser as follows: The constructor does not need any parameters, but one may tell it if the graph is directed, an array of attributes and the name of the graph. To generate content, serveral methods are available: addEdge(), addNode(), and addCluster(). Calling graphviz' dot or neato is being done by Image_GraphViz implicitly when calling image() or fetch(). Both can be used to generate and display/return image data in a large number of image formats, including svg, png, pdf and plain text. |
各種マニュアル:
PHPマニュアル |
PEARマニュアル |
Smarty(英語)マニュアル |
PHP-GTKマニュアル |
「A simple graphviz example」をGoogle検索
|