We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9af1c9e commit ff48238Copy full SHA for ff48238
cypher/queries/interactive-complex-14.cypher
@@ -6,11 +6,14 @@
6
27 AS person2Id
7
}
8
*/
9
-CALL gds.graph.drop('q14graph', false)
10
-YIELD graphName
+// Check whether a path exists -- if there is no path, the query will return an empty result
+MATCH
11
+ (person1:Person {id: $person1Id}),
12
+ (person2:Person {id: $person2Id}),
13
+ path = shortestPath((person1)-[:KNOWS*]-(person2))
14
15
// ----------------------------------------------------------------------------------------------------
-WITH count(*) AS dummy
16
+WITH path
17
18
19
CALL gds.graph.project.cypher(
0 commit comments