This is an interesting idea. My question would be: why make a new 3rd node (C), instead of using one of the existing nodes, A or B? This would prevent the operations of creating a node, then moving all the relationships of A and B; you'd only have to move relationships on A or B.
Also, what happens to properties that exist on both A and B? If they both have a "foo" property, and on A the value is "bar" and on B the value is "baz" what is the value of "foo" on the merged node C?
If there is a clear definition of what the expected outcome and behavior is, this could be a pretty useful feature.
-- Josh
On Sunday, July 29, 2012 8:20:39 AM UTC-4, Макс Бартенев wrote:
Define merge operation for 2 vertices:Let's we have 2 vertices A and B. Then we create new vertex C.
Then all outgoing edges from A and B become outgoing edges from C;
And all incoming edges to A and B become incoming edges to C;
Then vertices A and B remove; C becomes merge of A and B.
So the question is: does neo4j have any internal feautures for this operations?
Thank you.
P.S. Sorry for my English.