Class: Dse::Graph::Edge
- Inherits:
-
Object
- Object
- Dse::Graph::Edge
- Includes:
- Cassandra::Util
- Defined in:
- lib/dse/graph/edge.rb
Overview
Edge represents an edge in DSE graph. An edge connects two vertices.
Instance Attribute Summary collapse
-
#id ⇒ Hash
readonly
Id of this edge.
-
#in_v ⇒ String
readonly
Id of the "to" vertex of the edge.
-
#in_v_label ⇒ String
readonly
Label of the "to" vertex of the edge.
-
#label ⇒ String
readonly
Label of this edge.
-
#out_v ⇒ String
readonly
Id of the "from" vertex of the edge.
-
#out_v_label ⇒ String
readonly
Label of the "from" vertex of the edge.
-
#properties ⇒ Hash<String, String>
readonly
Properties of this edge.
Instance Attribute Details
#id ⇒ Hash (readonly)
Returns id of this edge.
17 18 19 |
# File 'lib/dse/graph/edge.rb', line 17 def id @id end |
#in_v ⇒ String (readonly)
Returns id of the "to" vertex of the edge.
23 24 25 |
# File 'lib/dse/graph/edge.rb', line 23 def in_v @in_v end |
#in_v_label ⇒ String (readonly)
Returns label of the "to" vertex of the edge.
25 26 27 |
# File 'lib/dse/graph/edge.rb', line 25 def in_v_label @in_v_label end |
#label ⇒ String (readonly)
Returns label of this edge.
19 20 21 |
# File 'lib/dse/graph/edge.rb', line 19 def label @label end |
#out_v ⇒ String (readonly)
Returns id of the "from" vertex of the edge.
27 28 29 |
# File 'lib/dse/graph/edge.rb', line 27 def out_v @out_v end |
#out_v_label ⇒ String (readonly)
Returns label of the "from" vertex of the edge.
29 30 31 |
# File 'lib/dse/graph/edge.rb', line 29 def out_v_label @out_v_label end |
#properties ⇒ Hash<String, String> (readonly)
Returns properties of this edge.
21 22 23 |
# File 'lib/dse/graph/edge.rb', line 21 def properties @properties end |