#node1 = Node(ListColumnName[0], name='美国入侵巴拿马战争', type=atype1)
node1 = graph.nodes.match(ListColumnName[0], name='美国入侵巴拿马战争').first()
#node2 = Node(ListColumnName[4], name='资源战争', type=atype2)
node2 = graph.nodes.match(ListColumnName[4], name='资源战争').first()
for rel in graph.match((node1,node2), r_type="分类"):
print(rel)
graph.match((node1,node2), r_type="分类"):
这段代码中,两个节点需要是查询到的实例,而不是自己Node函数新生成的实例(id不同)