Class: Dse::Graph::Vertex
- Inherits:
-
Object
- Object
- Dse::Graph::Vertex
- Includes:
- Cassandra::Util
- Defined in:
- lib/dse/graph/vertex.rb
Overview
Vertex represents a vertex in DSE graph. Vertices have sophisticated properties. A given property can have multiple values, and each value can have a collection of meta-properties. To access a property of a vertex, you'd reference the #properties hash, and then get the n'th value, which is a VertexProperty, and then get the actual value from there.
Instance Attribute Summary collapse
-
#id ⇒ Hash
readonly
Id of this vertex.
-
#label ⇒ String
readonly
Label of this vertex.
-
#properties ⇒ Hash<String, Array<VertexProperty>>
readonly
Properties of this vertex.
Instance Attribute Details
#id ⇒ Hash (readonly)
Returns id of this vertex.
34 35 36 |
# File 'lib/dse/graph/vertex.rb', line 34 def id @id end |
#label ⇒ String (readonly)
Returns label of this vertex.
36 37 38 |
# File 'lib/dse/graph/vertex.rb', line 36 def label @label end |
#properties ⇒ Hash<String, Array<VertexProperty>> (readonly)
Returns properties of this vertex.
38 39 40 |
# File 'lib/dse/graph/vertex.rb', line 38 def properties @properties end |