Class: GraphElements::Edge
- Inherits:
-
Object
- Object
- GraphElements::Edge
- Defined in:
- lib/social_framework/graphs/graph_elements.rb
Overview
Represent the conneciont edges between vertices
Instance Attribute Summary collapse
-
#destiny ⇒ Object
Returns the value of attribute destiny.
-
#labels ⇒ Object
Returns the value of attribute labels.
-
#origin ⇒ Object
Returns the value of attribute origin.
Instance Method Summary collapse
-
#initialize(origin, destiny) ⇒ Edge
constructor
- Constructor to Edge ====== Params:
origin Vertexrelationship origindestiny-
Vertexrelationship destiny Returns Vertex’s Instance.
- Constructor to Edge ====== Params:
Constructor Details
#initialize(origin, destiny) ⇒ Edge
Constructor to Edge
Params:
origin-
Vertexrelationship origin destiny-
Vertexrelationship 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
#destiny ⇒ Object
Returns the value of attribute destiny.
54 55 56 |
# File 'lib/social_framework/graphs/graph_elements.rb', line 54 def destiny @destiny end |
#labels ⇒ Object
Returns the value of attribute labels.
54 55 56 |
# File 'lib/social_framework/graphs/graph_elements.rb', line 54 def labels @labels end |
#origin ⇒ Object
Returns the value of attribute origin.
54 55 56 |
# File 'lib/social_framework/graphs/graph_elements.rb', line 54 def origin @origin end |