Class: BipartiteGraph::Edge

Inherits:
Struct
  • Object
show all
Defined in:
lib/bipartite_graph/edge.rb

Instance Attribute Summary collapse

Instance Attribute Details

#fromObject

Returns the value of attribute from

Returns:

  • (Object)

    the current value of from



2
3
4
# File 'lib/bipartite_graph/edge.rb', line 2

def from
  @from
end

#toObject

Returns the value of attribute to

Returns:

  • (Object)

    the current value of to



2
3
4
# File 'lib/bipartite_graph/edge.rb', line 2

def to
  @to
end

#weightObject

Returns the value of attribute weight

Returns:

  • (Object)

    the current value of weight



2
3
4
# File 'lib/bipartite_graph/edge.rb', line 2

def weight
  @weight
end