From 4f7f59f9fc195acda6e1207ed8907f0d165e3341 Mon Sep 17 00:00:00 2001 From: Matej Ferencevic <matej.ferencevic@memgraph.io> Date: Wed, 11 Oct 2017 13:53:34 +0200 Subject: [PATCH] Fixed openCypher documentation query indentation. Reviewers: teon.banek, florijan, buda Reviewed By: buda Differential Revision: https://phabricator.memgraph.io/D899 --- docs/user_technical/open-cypher.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/user_technical/open-cypher.md b/docs/user_technical/open-cypher.md index 9a3adb032..595a561c8 100644 --- a/docs/user_technical/open-cypher.md +++ b/docs/user_technical/open-cypher.md @@ -409,7 +409,7 @@ a custom implementation, based on the edge expansion syntax. Finding the shortest path between nodes can be done using breadth-first expansion: - MATCH (a {id: 723})-[r:Type \*bfs..10]-(b {id : 882}) RETURN * + MATCH (a {id: 723})-[r:Type \*bfs..10]-(b {id : 882}) RETURN * The above query will find all paths of length up to 10 between nodes `a` and `b`. The edge type and maximum path length are used in the same way like in variable @@ -417,14 +417,14 @@ length expansion. To find only the shortest path, simply append LIMIT 1 to the RETURN clause. - MATCH (a {id: 723})-[r:Type \*bfs..10]-(b {id : 882}) RETURN * LIMIT 1 + MATCH (a {id: 723})-[r:Type \*bfs..10]-(b {id : 882}) RETURN * LIMIT 1 Breadth-fist expansion allows an arbitrary expression filter that determines if an expansion is allowed. Following is an example in which expansion is allowed only over edges whose `x` property is greater then `12` and nodes `y` whose property is lesser then `3`: - MATCH (a {id: 723})-[\*bfs..10 (e, n | e.x > 12 and n.y < 3)]-() RETURN * + MATCH (a {id: 723})-[\*bfs..10 (e, n | e.x > 12 and n.y < 3)]-() RETURN * The filter is defined as a lambda function over `e` and `n`, which denote the edge and node being expanded over in the breadth first search.