from py2neo import Node,Relationship,Graphgraph =Graph(user= " neo4j " ,password= " yiwoqu " )a = Node( " drug " , name= " Alice " )b = Node( " Person " , name= " Bob " )ab = Relationship(a, " KNOWS " , b)graph.create(ab)
from py2neo import Node,Relationship,Graph graph=Graph(user="neo4j",password="yiwoqu") a = Node("drug", name="Alice") b = Node("Person", name="Bob") ab = Relationship(a, "KNOWS", b) graph.create(ab)