【发布时间】:2014-11-26 19:22:54
【问题描述】:
我在处理 neo4j 图,我写了这个查询
match (rec:Recipe) , (rec1:Recipe) , (rec)-[r:ContainsIngredient]->() , (rec1)- [r1:ContainsIngredient]->()
where rec.name = "a" AND rec1.name = "b"
return count(r) , count(r1)
它返回相同的值,虽然 Recipe("a") 有三个关系,Recipe("b") 有 5 个关系。 注意:我注意到它总是返回更大的值。
【问题讨论】:
标签: neo4j cypher relationship