neo4j - Drawing a graph with GraphViz in PHP -


good evening,

i trying figure out way display simple node/edge graphs neo4j db in php. had @ three.js, sigma , alchemy tools seem way complex such simple tasks. found graphviz runs fine when use editor. not able find when wanted use php. there pear package seems not suitable anymore php >5.0 (tried , run lots of errors (e.g. non-static method system::mktemp() should not called statically - there thread here this: graphviz not working php 5.3.2) , found document http://www.graphviz.org/pdf/gv.3php.pdf - unfortunately seems cant deal this.

anybody has example how draw e.g. this:

 <?php  require_once 'image/graphviz.php';   $gv = new image_graphviz();  $gv->addedge(array('wake up'        => 'visit bathroom'));  $gv->addedge(array('visit bathroom' => 'make coffee'));  $gv->image();  ?>  

(source:http://pear.php.net/manual/en/package.images.image-graphviz.example.php)

this code pear package example doesnt run - maybe has idea how use php directly on gv.php extension graphviz?

a graphviz example runs fine in editor:

graph graphname {                  -- b;                  b -- c;                 b -- d;                 d -- a;         } 

but how php talk graphviz , produce output?

any appreciated, thanks. b

you can use javascript based dot renderer, e.g.


Comments

Popular posts from this blog

java - Could not locate OpenAL library -

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

sorting - opencl Bitonic sort with 64 bits keys -