I want to create relationship between two existing nodes of different type in py2neo v3, can this only be done using the Cypher execution or is there a function(perhaps merge) that should do this?
E.g.
from py2neo import Graph, Path, authenticate, GraphObject
from py2neo import Node, Relationship
from py2neo.ogm import *
a = Node("type1",name = "alice")
graph.create(a)
b = Node("type2",name = "bob")
graph.create(b)
#now I want to make a relationship of these nodes without using a, b or Relationship
#Hence something like:
graph.merge(Node("type1",name = "alice"),"FRIENDS_WITH",Node("type2",name = "bob"))
The point is if alice has many many friends, and I make them all ahead of time because they have various other properties in a dictionary that I want have already looped over and made the nodes, how do I connect alice with those friends without create additional alices? I think merge would work but I don't understand its syntax.