Hey M,

Just to make sure... i have my Node csv which has columns for labels.  One 
label is DESC.  

The DESC column has two values...  "s" and "t".  

The Node csv file has 18k nodes, 146 of which have the "s" label and the 
rest have the "t" label.  Since I created relationships between "s" and "t" 
nodes in both directions, half the time the "s" node is "FROM" node and the 
other half of the time, the "s" node is the "TO" node.  The same 
arrangement applies to the "t" node.  

Consequently, am I right in assuming the statement should be as follows...
MATCH (LEFT_NODE:#{DESC} {LC_ID:{LEFT_NODE_ID}}), (RIGHT_NODE:#{DESC} {LC_ID
:{RIGHT_NODE}})?

Jose


On Friday, December 5, 2014 2:44:40 AM UTC-5, Michael Hunger wrote:
>
> Not sure what you mean by: I have a node label whose header in the csv is 
> called DESC with two values that for brevity are ... s and  t .  
>
> If you have a CSV and you provide a label for both left node and right 
> node then probably something like this:
>
> MATCH (LEFT_NODE:#{LEFT_LABEL} {LC_ID:{LEFT_NODE_ID}}), (
> RIGHT_NODE:#{RIGHT_LABEL} {LC_ID:{RIGHT_NODE}})
>
> If your label is fixed, eg. ":Document" then you can use it directly.
>
> Michael
>
>
> On Fri, Dec 5, 2014 at 2:34 AM, José F. Morales <[email protected] 
> <javascript:>> wrote:
>
>> in your MATCH you _must_ provide the label then.
>>>
>>>>
>>>> MATCH (LEFT_NODE:LABEL1 {LC_ID:{LEFT_NODE}}), (RIGHT_NODE:LABEL2 {LC_ID
>>>> :{RIGHT_NODE}})
>>>> ..
>>>>
>>>
>>> I have a node label whose header in the csv is called DESC with two 
>>> values that for brevity are ... s and  t .  
>>> Do you mean I should write...  MATCH (LEFT_NODE:s {LC_ID:{LEFT_NODE}}), 
>>> (RIGHT_NODE:t {LC_ID:{RIGHT_NODE}}) OR MATCH (LEFT_NODE:DESC {LC_ID:{
>>> LEFT_NODE}}), (RIGHT_NODE:DESC {LC_ID:{RIGHT_NODE}})?
>>>
>>
>> I suspect its the first option. 
>>
>> Jose 
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Neo4j" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to