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.
612 613 614 615 |
# File 'lib/bio/pathway.rb', line 612 def initialize(node1, node2, edge) @node = [node1, node2] @edge = edge end |