Skip to content

Commit

Permalink
update cypher queries
Browse files Browse the repository at this point in the history
Committed-by: xiaolei.zl from Dev container
  • Loading branch information
zhanglei1949 committed Aug 27, 2024
1 parent 0ff82bc commit e892d41
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 2 deletions.
2 changes: 1 addition & 1 deletion flex/interactive/examples/new_graph_algo/1.cypher
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ MATCH (p: Paper)-[:WorkOn]->(t:Task),
(p)-[:Use]->(s:Solution)
WHERE t.name = "Distributed Subgraph Matching Efficiency"
WITH t, c, count(p) AS num
RETURN t.name, c.name, num
RETURN t.name, c.name, num;
2 changes: 1 addition & 1 deletion flex/interactive/examples/new_graph_algo/2.cypher
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ MATCH (p3)-[:Has]->(c)-[:SolvedBy]->(s3:Solution),
(p3)-[:Use]->(s3)
WHERE p3.title = "HUGE: An Efficient and Scalable Subgraph Enumeration System"
WITH paper1, paper2, p3.title as paper3, c.name as challenge, solutions1, solutions2, collect(s3.description) as solutions3
RETURN paper1, paper2, paper3, challenge, solutions1, solutions2, solutions3
RETURN paper1, paper2, paper3, challenge, solutions1, solutions2, solutions3;
2 changes: 2 additions & 0 deletions flex/interactive/examples/new_graph_algo/3.cypher
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
MATCH (a:Challenge)-[b:Solvedby]->(c:Solution) WHERE a.id = 4
RETURN a, b, c;
7 changes: 7 additions & 0 deletions flex/interactive/examples/new_graph_algo/4.cypher
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
MATCH (p1:Paper)<-[c1:Cite]-(p2:Paper)<-[c2:Cite]-(p3),
(p1:Paper)-[has1:Has]->(ch),
(p2:Paper)-[has2:Has]->(ch),
(p3:Paper)-[has3:Has]->(ch)
WHERE p1.title = 'Parallel Subgraph Listing in a Large-Scale Graph'
AND p2.title = 'Scalable distributed subgraph enumeration'
RETURN p1, c1, p2, c2, p3, has1, has2, has3, ch;
11 changes: 11 additions & 0 deletions flex/interactive/examples/new_graph_algo/5.cypher
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
MATCH (p1: Paper)<-[:Cite]-(p2)<-[:Cite]-(p3)<-[:Cite]-(p4),
(p1)-[:Has]->(c)-[:SolvedBy]->(s1:Solution),
(p1)-[:Use]->(s1:Solution),
(p2)-[:Has]->(c)-[:SolvedBy]->(s2:Solution),
(p2)-[:Use]->(s2:Solution),
(p3)-[:Has]->(c)-[:SolvedBy]->(s3:Solution),
(p3)-[:Use]->(s3:Solution),
(p4)-[:Has]->(c)-[:SolvedBy]->(s4:Solution),
(p4)-[:Use]->(s4:Solution)
WHERE p4.title = "HUGE: An Efficient and Scalable Subgraph Enumeration System"
RETURN p1.title, p2.title, p3.title, p4.title, c.name, s1.description, s2.description, s3.description, s4.description;

0 comments on commit e892d41

Please sign in to comment.