Class: GraphElements::EdgeDefault

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

Overview

Represent the conneciont edges between vertices

Instance Attribute Summary

Attributes inherited from Edge

#destiny, #labels, #origin

Instance Method Summary collapse

Constructor Details

#initialize(origin, destiny) ⇒ EdgeDefault

Constructor to Edge

Params:
origin

Vertex relationship origin

destiny

Vertex relationship destiny

Returns Vertex’s Instance



111
112
113
114
115
# File 'lib/social_framework/graphs/graph_elements.rb', line 111

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