查询整个数据库:
match(n) return n;
删除所有关系和节点:
MATCH (n)-[r]-()
DELETE n,r
删除所有节点:
match (n)
delete n
创建节点:
create (n:Person { name:'知识点1' }) return n;
创建有方向关系:
MATCH (a:Person),(b:Person)
WHERE a.name = '知识点1' AND b.name = '知识点2'
CREATE (a)-[r:相关 { roles:['相关'] }]->(b)
RETURN r;
参考来源:https://www.cnblogs.com/ljhdo/p/5516793.html