赞
踩
MATCH (a)-[r]->(b)
WITH a, b, TAIL (COLLECT (r)) as rr
FOREACH (r IN rr | DELETE r)
Node_1 = Node(label, name='name', country='china') graph.merge(Node_1, label, 'name')
如果有多个属性在创建时只需要写一个如上面的’name’和‘country’只需在merge函数中写一个‘name’
graph.run("MATCH (p),(u)
where p.name='{}'and p.country='{}' and u.name='{}' and u.country='{}'
CREATE (p)-[r:{}]->(u)".format(p_name, country_data, u_name, country_data, relation))
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。