Replies: 7 comments
-
中文: MATCH p=(v)-[e:acted_in|:rate*1..3]-(v2) WHERE id(v) IN [3937] AND e.stars = 3 RETURN p LIMIT 100 A:目前还不支持不定长边的过滤查询。目前的代替方案只能是分开写。上面的示例,就需要从 1 跳到 3 跳都写一遍。 English: MATCH p=(v)-[e:acted_in|:rate*1..3]-(v2) WHERE id(v) IN [3937] AND e.stars = 3 RETURN p LIMIT 100 A: Filtering queries with indefinite length edges are not yet supported. The current alternative is to write them separately. In the above example, it is necessary to write all jumps from 1 to 3. |
Beta Was this translation helpful? Give feedback.
-
中文: MATCH (n1 {name:'Corin Redgrave'}),(n2 {name:'Liam Neeson'})
CALL algo.allShortestPaths(n1,n2) YIELD nodeIds,relationshipIds,cost
RETURN nodeIds,relationshipIds,cost 详尽使用方案请参考官网文档https://www.tugraph.org/doc?version=V3.3.0&id=10000000000658658。 English: MATCH (n1 {name:'Corin Redgrave'}),(n2 {name:'Liam Neeson'})
CALL algo.allShortestPaths(n1,n2) YIELD nodeIds, relationshipIds, cost
RETURN nodeIds, relationshipIds, cost For a detailed usage plan, please refer to the official website document https://www.tugraph.org/doc?version=V3.3.0&id=10000000000658658. |
Beta Was this translation helpful? Give feedback.
-
中文: MATCH (n1),(n2) CALL algo.allShortestPaths(n1,n2)
YIELD nodeIds,relationshipIds,cost
WHERE id(n1) IN [0] AND id(n2) IN [3938]
RETURN nodeIds,relationshipIds,cost A:目前 cypher 查询引擎正在优化中。现阶段语句改写可以通过 with 向下传递进行优化。 MATCH (n1) where id(n1) in [0] with n1
MATCH (n2) where id(n2) in [3938] with n1, n2
CALL algo.allShortestPaths(n1,n2) YIELD nodeIds,relationshipIds,cost
RETURN nodeIds,relationshipIds,cost English: MATCH (n1),(n2) CALL algo.allShortestPaths(n1,n2)
YIELD nodeIds, relationshipIds, cost
WHERE id(n1) IN [0] AND id(n2) IN [3938]
RETURN nodeIds, relationshipIds, cost A: Currently the cypher query engine is being optimized. Statement rewriting at this stage can be optimized by passing down with with . MATCH (n1) where id(n1) in [0] with n1
MATCH (n2) where id(n2) in [3938] with n1, n2
CALL algo.allShortestPaths(n1,n2) YIELD nodeIds, relationshipIds, cost
RETURN nodeIds, relationshipIds, cost |
Beta Was this translation helpful? Give feedback.
-
中文: MATCH p=(a)-[*..]-(b) WHERE id(a) IN [3] AND id(b) IN [19] RETURN p English: Match p=(a)-[*..]-(b) WHERE id(a) IN [3] AND id(b) IN [19] RETURN p |
Beta Was this translation helpful? Give feedback.
-
中文:
English:
|
Beta Was this translation helpful? Give feedback.
-
中文: English: |
Beta Was this translation helpful? Give feedback.
-
中文: English: |
Beta Was this translation helpful? Give feedback.
-
本贴是Cypher的QA汇总贴,详见下方回答。
This post is Cypher's QA summary post, see the answer below for details.
Beta Was this translation helpful? Give feedback.
All reactions