[BioRuby-cvs] bioruby/lib/bio pathway.rb,1.33,1.34
Katayama Toshiaki
k at pub.open-bio.org
Sun Dec 18 11:50:58 EST 2005
Update of /home/repository/bioruby/bioruby/lib/bio
In directory pub.open-bio.org:/tmp/cvs-serv29285/lib/bio
Modified Files:
pathway.rb
Log Message:
* rolled back to the previous version until bugs caused by the specification change are fixed
Index: pathway.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/lib/bio/pathway.rb,v
retrieving revision 1.33
retrieving revision 1.34
diff -C2 -d -r1.33 -r1.34
*** pathway.rb 4 Nov 2005 17:39:44 -0000 1.33
--- pathway.rb 18 Dec 2005 16:50:56 -0000 1.34
***************
*** 1,21 ****
#
! # = bio/pathway.rb - Binary relations and Graph algorithms
! #
! # Copyright:: Copyright (c) 2001, 2005
! # Toshiaki Katayama <k at bioruby.org>,
! # Shuichi Kawashima <shuichi at hgc.jp>,
! # Nobuya Tanaka <t at chemruby.org>
! # License:: LGPL
! #
! # $Id$
[...1506 lines suppressed...]
+
+ --- Bio::Relation#eql?(rel)
+ --- Bio::Relation#hash
+
+ Method eql? is an alias of the === method and is used with hash method
+ to make uniq arry of the Bio::Relation objects.
+
+ a1 = Bio::Relation.new('a', 'b', 1)
+ a2 = Bio::Relation.new('b', 'a', 1)
+ a3 = Bio::Relation.new('b', 'c', 1)
+ p [ a1, a2, a3 ].uniq
+
+ --- Bio::Relation#<=>(rel)
+
+ Used by the each method to compare with another Bio::Relation object.
+ This method is only usable when the edge objects have the property of
+ the module Comparable.
+
+ =end
+
More information about the bioruby-cvs
mailing list