Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.3.0

Bug #4924 Links in record type nodes do not work
Submitted: 2005-07-26 18:19 UTC
From: pear at benbeaumont dot com Assigned: sebastian
Status: Closed Package: Image_GraphViz
PHP Version: 4.3.4 OS: Debian
Roadmaps: (Not assigned)    
Subscription  


 [2005-07-26 18:19 UTC] pear at benbeaumont dot com
Description: ------------ If we put links in a record type node for an edge to link to, it doesn't work (e.g.: $graph->addNode( 'struct1', array( 'label' => '<f0> left|<f1> mid\ dle|<f2> right', 'shape' => 'record' ) ); #this is taken from an example at http://www.graphviz.org/cvs/doc/info/shapes.html This is because the output has \" in, when I removed them from lines 407,435 and 460, then it seems to work. Test script: --------------- <?php $graph = new Image_GraphViz(); ##example from graphviz.org @ http://www.graphviz.org/cvs/doc/info/shapes.html $graph->addNode( 'struct1', array( 'label' => '<f0> left|<f1> mid\ dle|<f2> right', 'shape' => 'record' ) ); $graph->addNode( 'struct2', array( 'label' => '<f0> one|<f1> two', 'shape' => 'record' ) ); $graph->addNode( 'struct3', array( 'label' => 'hello\nworld |{ b |{c|<here> d|e}| f}| g | h', 'shape' => 'record' ) ); $graph->addEdge( array( 'struct1:f1' => 'struct2:f0' ) ); $graph->addEdge( array( 'struct1:f2' => 'struct3:here' ) ); #echo $graph->Parse(); $graph->image('jpg'); ?> Expected result: ---------------- Should have 3 record objects with links from within the objects to each other (e.g. from 'MId dle' to 'one' and 'right' to 'd') -- see the link to see the example. Actual result: -------------- There are more groups where the link names have been created as seperate nodes.

Comments

 [2007-11-18 02:20 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2007-11-19 07:12 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!