class Ogr::Edge

Class implements graph edge

Attributes

from[RW]
to[RW]
weight[RW]

Public Class Methods

new(from, to, weight = 1) click to toggle source

Create new edge.

# File lib/ogr/graphs/edge.rb, line 7
def initialize(from, to, weight = 1)
  @from = from
  @to = to
  @weight = weight
end