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

Request #3308 would like labels on the arcs
Submitted: 2005-01-26 23:56 UTC Modified: 2005-12-09 07:06 UTC
From: hendlerman at yahoo dot com Assigned: sergiosgc
Status: Assigned Package: Structures_Graph
PHP Version: 4.3.9 OS: any
Roadmaps: (Not assigned)    
Subscription  
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes. If this is not your bug, you can add a comment by following this link. If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: hendlerman at yahoo dot com
New email:
PHP Version: Package Version: OS:

 

 [2005-01-26 23: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 00: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; }