![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
neo4j
neo4j
牛code
这个作者很懒,什么都没留下…
展开
-
Python 操作 Neo4j
1.neo4j模块:执行CQL ( cypher ) 语句 from neo4j import GraphDatabase driver = GraphDatabase.driver("bolt://localhost:7687",auth=("root","root")) def add_point(tx,name): tx.run("CREATE (A:Person{name:$name}) " , name=name) def add_friend(tx,nam原创 2021-05-09 17:32:47 · 360 阅读 · 0 评论 -
neo4j数据基本增删改查
一.增加 1.增加一个节点 create(n:Person{name:"我",age:26}) 2.带有关系属性 create(p:Person{name:"我",age:"28"})-[:聊天{时间:30}]->(n:Person{name:"他",age:"35"}) 二.删除 1.删除一个节点 match(n:Person{name:"我",age:26}) delete n 2.删除关系 match (p:Person{name:"我",age:"28"})-[f:聊天]->(原创 2021-05-08 19:43:48 · 852 阅读 · 0 评论