Method: Bio::Relation#initialize
- Defined in:
- lib/bio/pathway.rb
#initialize(node1, node2, edge) ⇒ Relation
Create new binary relation object consists of the two object ‘node1’ and ‘node2’ with the ‘edge’ object as the relation of them.
719 720 721 722 |
# File 'lib/bio/pathway.rb', line 719 def initialize(node1, node2, edge) @node = [node1, node2] @edge = edge end |