Hi, I am using the following code to create four new nodes A, B, C, D and relations among them.
*a, b, r1 = g.create(node({"name": "A"}), node({"name": "B"}), rel(0, "KNOWS", 1)) #rel between A, B* *c, d, r2 = g.create(node({"name": "C"}), node({"name": "D"}), rel(0, "KNOWS", 1)) #rel between C, D* *r3 = g.create(rel(a, "KNOWS", d)) #rel between A, D* If a new node "E" comes, how can I create its relationship with an existing node? I am dealing with almost 0.4M nodes and 0.9M relations. I tried to create all nodes before creating relationships. But it takes so long. May be the above process will be faster(creates node and relations at the same time) 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 neo4j+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.