当前位置 : 主页 > 手机开发 > ROM >

Neo4j基础代码

来源:互联网 收集:自由互联 发布时间:2021-06-10
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)
网友评论