I modified your query to this: MATCH (a)-[r]->(b)-[q]->(c)-[o]->(a) RETURN a,r, b,q,c,o and returned 6 rows. the DISTINCT modifier didn't help in the return (in either query I may add).
Hopefully this is what you are looking for. Note, sans arraows (>) you are getting bi-directional graphs which is probably why it's doubling. On Tuesday, March 3, 2015 at 6:08:21 AM UTC-6, Jaroslav Ramba wrote: > > Hi, > > how can I remove automorfism in cypher result? This example > http://console.neo4j.org/?id=tz1lwc has 12 rows in result and 10 are > "duplicity" (automorfism). I want only 2 triangles in result, which > actually are in the database. As you can see in the result graph, there > are only two triangles, but table has 12 rows. > > I know that it is propably caused by traversing, but all I need these 2 > unique triangles. > -- 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.
