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)
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)
转载于:https://www.cnblogs.com/yiwoqu/p/11542191.html