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

Request #3308 would like labels on the arcs
Submitted: 2005-01-27 04:56 UTC
From: hendlerman at yahoo dot com Assigned: sergiosgc
Status: Suspended Package: Structures_Graph
PHP Version: 4.3.9 OS: any
Roadmaps: (Not assigned)    
Subscription  


 [2005-01-27 04:56 UTC] hendlerman at yahoo dot com
Description: ------------ Can arcs in the pear graph have metadata? It seems not. A labeled directed graph is a network - and maybe the code isn't meant to handle this complexity?

Comments

 [2005-01-27 05:05 UTC] hendlerman at yahoo dot com
perhaps a slight alteration to this function? function _connectTo(&$destinationNode) { $this->_arcs[] =& $destinationNode; } function _connectTo(&$destinationNode, $label = null) { if ($label != null) $this->_arcs[$label] =& $destinationNode; else $this->_arcs[] =& $destinationNode; }
 [2015-02-26 12:01 UTC] cweiske (Christian Weiske)
-Status: Assigned +Status: Suspended
If you provide a patch we can include it, but we will not implement that ourselves.