I think you're looking for something closer to this: MATCH (c:City)--(a:Person)--(b:Person),(a)--(d:Person) RETURN a,b,c,d
You don't actually have two connections between (a) and (b). In order to make the query useful, you probably need a starting point like: where d.name = "someone".j Wes On Thu, Mar 27, 2014 at 10:28 AM, Alex Frieden <[email protected]> wrote: > give that a shot > http://console.neo4j.org/r/3wgnza > > > On Thu, Mar 27, 2014 at 10:13 AM, Wes Freeman <[email protected]>wrote: > >> What's (d) supposed to be? >> >> Can you set up an example graph in console.neo4j.org, or a graphgist so >> we can run queries against it. >> >> Wes >> >> On Thu, Mar 27, 2014 at 9:50 AM, Alex Frieden <[email protected]> wrote: >> >>> So I have a person ndoe and I want to know who is a friend of a friend >>> from a city >>> >>> So what this looks like is: *MATCH >>> (c:City)--(a:Person)--(b:Person)--(a)--(d:Person) RETURN a,b,c,d* >>> >>> So what this is modeling is a person (a) who has three relationships: >>> b,c,d >>> >>> However, when I run this query, it returns nothing. What am I doing >>> wrong here? >>> >>> -- >>> 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. >>> >> >> -- >> 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. >> > > > > -- > Alexander Frieden > > -- > 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. > -- 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.
