Bio::Graph::Edge - encapsulation of an interaction between 2 Bio::Seq objects
## get an interaction between two nodes ##
my $edge = $gr->edge( $gr->nodes_by_id('P12345'),$gr->nodes_by_id('P23456'));my $id = $edge->object_id();my $wt = $edge->weight();my @nodes = $edge->nodes();
This class contains information about a bimolecular interaction. At present it just contains data about its component node, a weight (if set) and an identifier. Subclasses could hold more specific information.
Mailing Lists User feedback is an integral part of the evolution of this and other Bioperl modules. Send your comments and suggestions preferably to one of the Bioperl mailing lists. Your participation is much appreciated.
[email protected] - General discussionhttp://bioperl.org/wiki/Mailing_lists - About the mailing lists
Reporting Bugs Report bugs to the Bioperl bug tracking system to help us keep track the bugs and their resolution. Bug reports can be submitted via the web:
http://bugzilla.open-bio.org/
Email [email protected]
new
Name : newPurpose : constructor for an edge objectUsage : my $edge = Bio::Graph::Edge->new(nodes => [$node1,$node2]id => $id);$graph->add_edge($edge);Returns : a new Bio::Graph::Edge objectArguments : hash nodes => array reference of 2 nodesid => edge idweight(optional) => weight score.
weight
Name : weightPurpose : get/setter for weight scoreUsage : my $weight = $edge->weight();Returns : anumberArguments : void/ a number
object_id
Name : object_idPurpose : get/setter for object_idUsage : my $id = $edge->object_id();Returns : a string identifierArguments : void/ an identifier
nodes
Name : nodesPurpose : get/setter for nodesUsage : my @nodes = $edge->nodes();Returns : a 2 element list of nodes /voidArguments : void/ a 2 element list of nodes.