فهرست منبع

cypher return

wecisecode 1 هفته پیش
والد
کامیت
5a59cb484c

+ 39 - 0
odbctest/mql/basic/17_cypher_return/12cross.mql

@@ -0,0 +1,39 @@
+
+create ("cypher3:e31")-[:connect]->("cypher4:e41")
+;
+create ("cypher4:e41")-[:connect]->("cypher5:e51")
+;
+create ("cypher5:e51")-[:connect]->("cypher6:e61")
+;
+
+create ("cypher3:e32")-[:connect]->("cypher4:e42")
+;
+create ("cypher4:e42")-[:connect]->("cypher5:e52")
+;
+create ("cypher5:e52")-[:connect]->("cypher6:e62")
+;
+
+create ("cypher4:e41")-[:connect]->("cypher5:e52")
+;
+create ("cypher4:e42")-[:connect]->("cypher5:e51")
+;
+
+match (a:"cypher3:*")-[:connect]->(b:"cypher4:*"),
+(b:"cypher4:*")-[:connect]->(c:"cypher5:*"),
+(c:"cypher5:*")-[:connect]->(d:"cypher6:*")
+/**
+output()
+match("graph.nodes.len",8,"graph.edges.len",8)
+**/
+;
+
+match (a:"cypher3:*")
+-[:connect]->(b:"cypher4:*")
+-[:connect]->(c:"cypher5:*")
+-[:connect]->(d:"cypher6:*")
+return a.name, b.name, c.name, d.name
+/**
+output()
+count(4)
+**/
+;

odbctest/mql/basic/17_cypher_return/12data.mql → odbctest/mql/basic/17_cypher_return/13cycle.mql


+ 47 - 0
odbctest/mql/basic/17_cypher_return/14g1331.mql

@@ -0,0 +1,47 @@
+
+create ("cypher6:e61")-[:connect]->("cypher7:e71")
+;
+create ("cypher6:e61")-[:connect]->("cypher7:e72")
+;
+create ("cypher6:e61")-[:connect]->("cypher7:e73")
+;
+
+create ("cypher7:e71")-[:connect]->("cypher8:e81")
+;
+create ("cypher7:e71")-[:connect]->("cypher8:e82")
+;
+create ("cypher7:e72")-[:connect]->("cypher8:e82")
+;
+create ("cypher7:e72")-[:connect]->("cypher8:e83")
+;
+create ("cypher7:e73")-[:connect]->("cypher8:e83")
+;
+create ("cypher7:e73")-[:connect]->("cypher8:e81")
+;
+
+create ("cypher8:e81")-[:connect]->("cypher9:e91")
+;
+create ("cypher8:e82")-[:connect]->("cypher9:e91")
+;
+create ("cypher8:e83")-[:connect]->("cypher9:e91")
+;
+
+match (a:"cypher6:*")-[:connect]->(b:"cypher7:*"),
+(b:"cypher7:*")-[:connect]->(c:"cypher8:*"),
+(c:"cypher8:*")-[:connect]->(d:"cypher9:*")
+/**
+output()
+match("graph.nodes.len",8,"graph.edges.len",12)
+**/
+;
+
+match (a:"cypher6:*")
+-[:connect]->(b:"cypher7:*")
+-[:connect]->(c:"cypher8:*")
+-[:connect]->(d:"cypher9:*")
+return a.name, b.name, c.name, d.name
+/**
+output()
+count(6)
+**/
+;