Class: GraphElements::EdgeDefault
- Defined in:
- lib/social_framework/graphs/graph_elements.rb
Overview
Represent the conneciont edges between vertices
Instance Attribute Summary
Attributes inherited from Edge
Instance Method Summary collapse
-
#initialize(origin, destiny) ⇒ EdgeDefault
constructor
- Constructor to Edge ====== Params:
origin
Vertex
relationship origindestiny
-
Vertex
relationship destiny Returns Vertex’s Instance.
- Constructor to Edge ====== Params:
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 |