PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Structures » Structures_Graph » Bug #3308

would like labels on the arcs

Details

Request #3308would like labels on the arcs
Submitted2005-01-27 04:56 UTC
Fromhendlerman at yahoo dot com
Assignedsergiosgc
StatusSuspended
PackageStructures_Graph
PHP Version4.3.9
OSany
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;
}