lib/support.rb
(only if kind == :match): connect

Add a connection to the match-query

A Match-Query alwas has an Entry-Stratement and maybe other Statements.
They are connected via " -> " (outE), "<-" (inE) or "--" (both).

The connection method adds a connection to the statement-stack. 

Parameters:
  direction: :in, :out, :both, :in_edge, :out_edge, :both_edge, :in_vertex, :out_vertex, :both_vertex
  edge_class: to restrict the Query on a certain Edge-Class
  count: To repeat the connection
  as:  Includes a micro-statement to finalize the Match-Query
       as: defines a output-variablet, which is used later in the return-statement

The method returns the OrientSupport::MatchConnection object, which can be modified further.
It is compiled by calling compose
(only if kind == :match): connect
Add a connection to the match-query

A Match-Query alwas has an Entry-Stratement and maybe other Statements.

The connection method adds a connection to the statement-stack.



The method returns the OrientSupport::MatchConnection object, which can be modified further.
It is compiled by calling compose
( only if kind == : match ) : connect Add a connection to the match - query A Match - Query alwas has an Entry - Stratement and maybe other Statements . The connection method adds a connection to the statement - stack . The method returns the OrientSupport :: MatchConnection object which can be modified further . It is compiled by calling compose
def connect direction, edge_class: nil, count: 1, as: nil
  direction= :both unless [ :in, :out, :in_edge, :out_edge, :both_edge, :in_vertex, :out_vertex, :both_vertex].include? direction
  match_statements << m = OrientSupport::MatchConnection.new( direction: direction, edge: edge_class, count: count, as: as)
  m
end
def connect direction , edge_class : nil , count : 1 , as : nil direction = :both unless [ :in , :out , :in_edge , :out_edge , :both_edge , :in_vertex , :out_vertex , :both_vertex ] . include? direction match_statements << m = OrientSupport :: MatchConnection . new ( direction : direction , edge : edge_class , count : count , as : as ) m end
(only if kind == :match): connect
Add a connection to the match-query
( only if kind == : match ) : connect Add a connection to the match - query
direction
<not_specific>
edge_class
<not_specific>
count
<not_specific>
as
<not_specific>