Author image Christopher Fields
and 1 contributors


Bio::Network::Edge - holds the names of pairs of Nodes


  use Bio::Network;

  # get a network, somehow, then:
  my @edges = $graph->edges;
  for my $edge (@edges) {
    for my $node ($edge->[0],$edge->[1]) {
      my @proteins = $node->proteins;
      for my $protein (@proteins) {
        print "Sequence is: ", $protein->seq, "\n";


This class contains the names of the Nodes in a bi-molecular interaction. An Edge object is extremely simple as most of the experimental or biological detail goes into the Interaction objects.


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.                  - General discussion  - About the mailing lists


Please direct usage questions or support issues to the mailing list:

rather than to the module maintainer directly. Many experienced and reponsive experts will be able look at the problem and quickly address it. Please include a thorough description of the problem with code and data examples if at all possible.

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:


Brian Osborne bosborne at Richard Adams

Maintained by Brian Osborne


 Name       : new
 Purpose    : Constructor for an Edge object
 Usage      : my $edge = Bio::Network::Edge->new(-nodes => \@nodes);
 Returns    : A new Bio::Network::Edge object 
 Arguments  : -nodes => reference to an array containing a 
              pair of Nodes


 Name       : nodes
 Purpose    : Get the pair of nodes for an Edge
 Usage      : my $count = $edge->nodes
              my @nodes = $edge->nodes
 Returns    : Gets an array of 2 Nodes or a count of the number of
 Arguments  :
 Notes      : Getting a count of the number of Nodes in an edge will
              almost always return 2, but there is a formal possibility
              that a Node could interact with itself, returning 1


 Name       :
 Purpose    :
 Usage      :
 Returns    :
 Arguments  :