Class: Dse::Graph::Path

Inherits:
Object
  • Object
show all
Defined in:
lib/dse/graph/path.rb

Overview

Path represents a path connecting a set of vertices.

Instance Attribute Summary collapse

Instance Attribute Details

#labelsArray<Array> (readonly)

Returns labels in the path.

Returns:

  • (Array<Array>)

    labels in the path



15
16
17
# File 'lib/dse/graph/path.rb', line 15

def labels
  @labels
end

#objectsArray<Vertex, Edge, Result> (readonly)

Returns objects in the path, coerced to domain objects that we recognize, or a Result otherwise.

Returns:

  • (Array<Vertex, Edge, Result>)

    objects in the path, coerced to domain objects that we recognize, or a Result otherwise



18
19
20
# File 'lib/dse/graph/path.rb', line 18

def objects
  @objects
end