Hi,

I have attached an image representation of node relationships in my graph.

Basically, I have users who like different geographies (could be a country, 
state or city) and I want to match those users who like geographies in the 
same country. 
For eg. if user A likes USA 
              user B likes USA
              user C likes San Jose
              user D likes France

then I want user A to be matched to users B and C.

What cypher query will get me the results? This is what I tried:

/** node id of user A is 0 **/

START u=node(0) MATCH (u:users) - [:likes] - (g1) - [:contains*0..5] - (g2) 
- [:likes] - (o:users) RETURN o;

This query is not working as expected. What would be a right syntax?

~Niranjan

-- 
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.

<<attachment: rel.png>>

Reply via email to