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

Bug #19573 Nested Clusters with numeric ids won't work as expected
Submitted: 2012-08-21 14:15 UTC
From: github138 Assigned:
Status: Open Package: Image_GraphViz (version 1.3.0)
PHP Version: 5.4.5 OS: FreeBSD
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 44 + 46 = ?

 
 [2012-08-21 14:15 UTC] github138 (Maik Ehinger)
Description: ------------ nested Clusters with numeric ids don't work (possible array_merge reindex problem) alphanumeric ids work as expected Test script: --------------- $gv = new Image_GraphViz(); $gv->addCluster("1", ""); $gv->addCluster("2", "", array(), "1"); $gv->addNode("1", array(), "1"); $gv->addNode("2", array(), "2"); $gv->addEdge(array("1" => "2")); echo "---DOT---\n"; echo $gv->parse(); Expected result: ---------------- strict digraph G { subgraph cluster_1 { 1; subgraph cluster_2 { 2; } } 1 -> 2; } Actual result: -------------- strict digraph G { subgraph cluster_1 { 1; } 1 -> 2; }

Comments