Module: Neo4j::Cypher::MatchStart::Algorithms

Included in:
RelRightMatchContext
Defined in:
lib/neo4j-cypher/match.rb

Instance Method Summary collapse

Instance Method Details

#shortest_pathObject



172
173
174
175
# File 'lib/neo4j-cypher/match.rb', line 172

def shortest_path
  @match_start.algorithm = "shortestPath"
  @match_start.eval_context
end

#shortest_pathsObject



177
178
179
180
# File 'lib/neo4j-cypher/match.rb', line 177

def shortest_paths
  @match_start.algorithm = "allShortestPaths"
  @match_start.eval_context
end