Neo4j Cypher - 如何显示具有公共节点的某种类型的所有节点的图形?
Neo4j Cypher - How to display graph of all nodes of a certain type with a common node?
即所有连接到名称为“免疫缺陷”的节点以及连接到名称为“常染色体隐性”的节点的所有节点
我试过这个:
MATCH (a)-[r*]->(b)
WHERE a.name="Immunodeficiency" AND b.name="autosomal recessive"
return a,r,b
但它不起作用。它只是返回 a 和 b,中间没有任何关系或节点
尝试return路径
MATCH p=(a)-[r*]->(b)
WHERE a.name="Immunodeficiency" AND
b.name="autosomal recessive"
return p
即所有连接到名称为“免疫缺陷”的节点以及连接到名称为“常染色体隐性”的节点的所有节点
我试过这个:
MATCH (a)-[r*]->(b)
WHERE a.name="Immunodeficiency" AND b.name="autosomal recessive"
return a,r,b
但它不起作用。它只是返回 a 和 b,中间没有任何关系或节点
尝试return路径
MATCH p=(a)-[r*]->(b)
WHERE a.name="Immunodeficiency" AND
b.name="autosomal recessive"
return p