Class: GraphElements::Edge

Inherits:
Object
  • Object
show all
Defined in:
lib/social_framework/graphs/graph_elements.rb

Overview

Represent the conneciont edges between vertices

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(origin, destiny) ⇒ Edge

Constructor to Edge

Params:
origin

Vertex relationship origin

destiny

Vertex relationship destiny

Returns Vertex’s Instance



61
62
63
64
65
# File 'lib/social_framework/graphs/graph_elements.rb', line 61

def initialize origin, destiny
  @origin = origin
  @destiny = destiny
  @labels = Array.new
end

Instance Attribute Details

#destinyObject

Returns the value of attribute destiny.



54
55
56
# File 'lib/social_framework/graphs/graph_elements.rb', line 54

def destiny
  @destiny
end

#labelsObject

Returns the value of attribute labels.



54
55
56
# File 'lib/social_framework/graphs/graph_elements.rb', line 54

def labels
  @labels
end

#originObject

Returns the value of attribute origin.



54
55
56
# File 'lib/social_framework/graphs/graph_elements.rb', line 54

def origin
  @origin
end