lib/trait_bank/stats.rb
# Add query part to unwind lists of objects collected in first part of query, and return Array of variables referring to the unwound object pairs (e.g., <label> in 'UNWIND <pairs> AS <label>')
Add query part to unwind lists of objects collected in first part of query, and return Array of variables referring to the unwound object pairs
Add query part to unwind lists of objects collected in first part of query and return Array of variables referring to the unwound object pairs
def sankey_add_unwind_obj_pairs_part(query_parts, collected_obj_pairs_vars, obj_var_pairs)
        obj_pair_vars = []
        query_parts << collected_obj_pairs_vars.map.with_index do |var, i|
          pair_var = "#{obj_var_pairs[i][:obj]}_pair"
          obj_pair_vars << pair_var
          "UNWIND #{var} AS #{pair_var}"
        end.join("\n")
        obj_pair_vars
      end
def sankey_add_unwind_obj_pairs_part ( query_parts , collected_obj_pairs_vars , obj_var_pairs ) obj_pair_vars = [ ] query_parts << collected_obj_pairs_vars . map . with_index do | var , i | pair_var = "#{obj_var_pairs[i][:obj]}_pair" obj_pair_vars << pair_var "UNWIND #{var} AS #{pair_var}" end . join ( "\n" ) obj_pair_vars end
Add query part to unwind lists of objects collected in first part of query, and return Array of variables referring to the unwound object pairs (e.g., <label> in 'UNWIND <pairs> AS <label>')
Add query part to unwind lists of objects collected in first part of query and return Array of variables referring to the unwound object pairs ( e . g . <label > in ' UNWIND <pairs > AS <label > ' )
query_parts
<not_specific>
collected_obj_pairs_vars
<not_specific>
obj_var_pairs
<not_specific>