Yep, thats it, thanks guys!
On Thu, Mar 27, 2014 at 10:43 AM, Michael Hunger < [email protected]> wrote: > You share had the create statement as executed statement not as create > setup. > > You mean like this? > > http://console.neo4j.org/r/69ak2s > > You had the same relationship (a)-[:KNOWS]-(b) in there twice which > doesn't return anything. > A path in cypher can only consist of paths with different relationships. > > If you remove the second mention of that relationship, it works. > > MATCH (c:City)<-[:LIVES_IN]-(a:Person)-[:KNOWS]-(b:Person), > (a)-[:KNOWS]->(d:Person) > RETURN a,b,c,d > > Cheers, > > Michael > > > > On Thu, Mar 27, 2014 at 3:28 PM, 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. > -- 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.
