Home » Structures » Structures_Graph » Bug #3308
would like labels on the arcs
Details
| 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) |
Comments
[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?
[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;
}