Method: Ogr::Edge#initialize
- Defined in:
- lib/ogr/graphs/edge.rb
#initialize(from, to, weight = 1) ⇒ Edge
Create new edge.
7 8 9 10 11 |
# File 'lib/ogr/graphs/edge.rb', line 7 def initialize(from, to, weight = 1) @from = from @to = to @weight = weight end |