Class: Dse::Graph::Edge

Inherits:
Object
  • Object
show all
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

Instance Attribute Details

#idHash (readonly)

Returns id of this edge.

Returns:

  • (Hash)

    id of this edge



17
18
19
# File 'lib/dse/graph/edge.rb', line 17

def id
  @id
end

#in_vString (readonly)

Returns id of the "to" vertex of the edge.

Returns:

  • (String)

    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_labelString (readonly)

Returns label of the "to" vertex of the edge.

Returns:

  • (String)

    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

#labelString (readonly)

Returns label of this edge.

Returns:

  • (String)

    label of this edge



19
20
21
# File 'lib/dse/graph/edge.rb', line 19

def label
  @label
end

#out_vString (readonly)

Returns id of the "from" vertex of the edge.

Returns:

  • (String)

    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_labelString (readonly)

Returns label of the "from" vertex of the edge.

Returns:

  • (String)

    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

#propertiesHash<String, String> (readonly)

Returns properties of this edge.

Returns:

  • (Hash<String, String>)

    properties of this edge



21
22
23
# File 'lib/dse/graph/edge.rb', line 21

def properties
  @properties
end