本文转载自:https://blog.csdn.net/chenjf0221/article/details/70238695
删除节点和节点关系
MATCH (a:key)-[r:KEY_WORD]-(b:JAVA) where ID(a) = 47 and ID(b) = 48 DETACH delete a,b,r
查找关联关系
MATCH (info {id: ‘02’})-[:KEY_WORD]->()-[:KEY_WORD]->(fof)
RETURN info.Title, fof.Title
删除节点之间的关系话呢,可以先删除当前节点与其他节点的所有关系
然后在删除当前节点和与此节点有关系的节点
match(a:key)-[r:KEY_WORD]-(b:JAVA)where a.id=’001’ delete r
match(a:key) where a.id=’001’ delete a
match(b:JAVA) where b.id=’01’ delete b