I am new to a graph database. I am very sure that the answer should be simple as one or two command lines.
I have very simple schema. Person and Email class. There are edges between Person and Email, SendFrom and SendTo. I want to create edges between Person vertices which is joined by the same email.
For instance, if person A sends an email to person B. I want to create an edge between A and B, and increment count property of the edge.
I tried something like, CREATE EDGE FROM (SELECT in() from Email) TO (SELECT out() from Email)
. Since I am using pyorient, a python driver for OrientDB, this could be done in Python script, or just SQL like language.
I will edit my post, if you need more information. Just let me know.