Hello.

I have a question about MERGE.

If an empty graph is given and process a MERGE clause with a bidirectional 
relationship,
According to the manual(link 
<https://neo4j.com/docs/developer-manual/current/cypher/clauses/merge/#merge-merge-on-an-undirected-relationship>),
 
"MERGE can also be used with an undirected relationship. When it needs to 
create a new one, it will pick a direction."

Query
     CREATE (a {name: 'a'}), (b {name: 'b'})
     MERGE (a)-[r:KNOWS]-(b)

Q1) How is the direction determined?

Q2) Why not create two relationships for bi-directions(incoming and 
outgoing)?

Thanks.

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