瀏覽代碼

cypher return

wecisecode 1 周之前
父節點
當前提交
a4fb615c88
共有 1 個文件被更改,包括 29 次插入6 次删除
  1. 29 6
      odbctest/mql/basic/17_cypher_return/13cycle.mql

+ 29 - 6
odbctest/mql/basic/17_cypher_return/13cycle.mql

@@ -1,16 +1,31 @@
 
 create ("cypher1:e11")-[:connect]->("cypher2:e21")
 ;
-create ("cypher1:e11")-[:connect]->("cypher3:e31")
+create ("cypher1:e11")-[:connect]->("cypher2:e22")
 ;
-create ("cypher2:e21")-[:connect]->("cypher3:e31")
+create ("cypher1:e11")-[:connect]->("cypher2:e23")
 ;
 
-create ("cypher1:e11")-[:connect]->("cypher2:e22")
+create ("cypher1:e11")-[:connect]->("cypher3:e31")
 ;
 create ("cypher1:e11")-[:connect]->("cypher3:e32")
 ;
-create ("cypher2:e22")-[:connect]->("cypher3:e32")
+create ("cypher1:e11")-[:connect]->("cypher3:e33")
+;
+create ("cypher1:e11")-[:connect]->("cypher3:e34")
+;
+
+create ("cypher2:e21")-[:connect]->("cypher3:e31")
+;
+create ("cypher2:e22")-[:connect]->("cypher3:e31")
+;
+create ("cypher2:e23")-[:connect]->("cypher3:e31")
+;
+create ("cypher2:e23")-[:connect]->("cypher3:e32")
+;
+create ("cypher2:e23")-[:connect]->("cypher3:e33")
+;
+create ("cypher2:e23")-[:connect]->("cypher3:e34")
 ;
 
 match (a:"cypher1:*")-[:connect]->(b:"cypher2:*"),
@@ -18,7 +33,7 @@ match (a:"cypher1:*")-[:connect]->(b:"cypher2:*"),
 (b:"cypher2:*")-[:connect]->(c:"cypher3:*")
 /**
 output()
-match("graph.nodes.len",5,"graph.edges.len",6)
+match("graph.nodes.len",8,"graph.edges.len",13)
 **/
 ;
 
@@ -26,8 +41,16 @@ match (a:"cypher1:*")-[:connect]->(b:"cypher2:*"),
 (a:"cypher1:*")-[:connect]->(c:"cypher3:*"),
 (b:"cypher2:*")-[:connect]->(c:"cypher3:*")
 return a.name, b.name, c.name
+with timeout = 600m
 /**
 output()
-count(2)
+count(6)
+match("a.name", "e11", "b.name", "e21", "c.name", "e31")
+match("a.name", "e11", "b.name", "e22", "c.name", "e31")
+match("a.name", "e11", "b.name", "e23", "c.name", "e31")
+match("a.name", "e11", "b.name", "e23", "c.name", "e32")
+match("a.name", "e11", "b.name", "e23", "c.name", "e33")
+match("a.name", "e11", "b.name", "e23", "c.name", "e34")
+loop(16)
 **/
 ;