From 85f1044011d355c14a68682ae90c13fddd18a258 Mon Sep 17 00:00:00 2001 From: E2ern1ty <30746207+E2ern1ty@users.noreply.github.com> Date: Thu, 21 Dec 2023 19:43:46 +0800 Subject: [PATCH 1/3] Update 6.find-path.md Add annotation to example of find-path --- .../3.ngql-guide/7.general-query-statements/6.find-path.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs-2.0-zh/3.ngql-guide/7.general-query-statements/6.find-path.md b/docs-2.0-zh/3.ngql-guide/7.general-query-statements/6.find-path.md index 820edc554b0..3aa3ff52d50 100644 --- a/docs-2.0-zh/3.ngql-guide/7.general-query-statements/6.find-path.md +++ b/docs-2.0-zh/3.ngql-guide/7.general-query-statements/6.find-path.md @@ -67,6 +67,7 @@ YIELD path as 返回的路径格式类似于`()-[:@]->( FIND SHORTEST PATH FROM "player102" TO "team204" OVER * YIELD path AS p; +--------------------------------------------+ | p | @@ -76,6 +77,7 @@ nebula> FIND SHORTEST PATH FROM "player102" TO "team204" OVER * YIELD path AS p; ``` ```ngql +# 查找并返回带属性值的team204到player100的最短反向路径 nebula> FIND SHORTEST PATH WITH PROP FROM "team204" TO "player100" OVER * REVERSELY YIELD path AS p; +--------------------------------------------------------------------------------------------------------------------------------------+ | p | @@ -85,6 +87,7 @@ nebula> FIND SHORTEST PATH WITH PROP FROM "team204" TO "player100" OVER * REVERS ``` ```ngql +# 查找并返回起点为player100,player130而终点为player132,player133的18跳之内双向最短路径 nebula> FIND SHORTEST PATH FROM "player100", "player130" TO "player132", "player133" OVER * BIDIRECT UPTO 18 STEPS YIELD path as p; +------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | p | @@ -104,6 +107,7 @@ nebula> FIND SHORTEST PATH FROM "player100", "player130" TO "player132", "player ```ngql +# 查找所有从player100到team204,并且degree为空或者大于等于0的路径 nebula> FIND ALL PATH FROM "player100" TO "team204" OVER * WHERE follow.degree is EMPTY or follow.degree >=0 YIELD path AS p; +------------------------------------------------------------------------------+ | p | @@ -116,6 +120,7 @@ nebula> FIND ALL PATH FROM "player100" TO "team204" OVER * WHERE follow.degree i ``` ```ngql +# 查找所有从player100到team204无环路径 nebula> FIND NOLOOP PATH FROM "player100" TO "team204" OVER * YIELD path AS p; +--------------------------------------------------------------------------------------------------------+ | p | From 276cee385740867234cce76377d17bb155a1c2e1 Mon Sep 17 00:00:00 2001 From: Steam Date: Mon, 25 Dec 2023 11:56:06 +0800 Subject: [PATCH 2/3] modify pr format --- .../7.general-query-statements/6.find-path.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs-2.0-zh/3.ngql-guide/7.general-query-statements/6.find-path.md b/docs-2.0-zh/3.ngql-guide/7.general-query-statements/6.find-path.md index 3aa3ff52d50..460f667b6af 100644 --- a/docs-2.0-zh/3.ngql-guide/7.general-query-statements/6.find-path.md +++ b/docs-2.0-zh/3.ngql-guide/7.general-query-statements/6.find-path.md @@ -67,7 +67,7 @@ YIELD path as 返回的路径格式类似于`()-[:@]->( FIND SHORTEST PATH FROM "player102" TO "team204" OVER * YIELD path AS p; +--------------------------------------------+ | p | @@ -77,7 +77,7 @@ nebula> FIND SHORTEST PATH FROM "player102" TO "team204" OVER * YIELD path AS p; ``` ```ngql -# 查找并返回带属性值的team204到player100的最短反向路径 +# 查找并返回带属性值的 team204 到 player100 的最短反向路径 nebula> FIND SHORTEST PATH WITH PROP FROM "team204" TO "player100" OVER * REVERSELY YIELD path AS p; +--------------------------------------------------------------------------------------------------------------------------------------+ | p | @@ -87,7 +87,7 @@ nebula> FIND SHORTEST PATH WITH PROP FROM "team204" TO "player100" OVER * REVERS ``` ```ngql -# 查找并返回起点为player100,player130而终点为player132,player133的18跳之内双向最短路径 +# 查找并返回起点为 player100,player130 而终点为 player132,player133 的 18 跳之内双向最短路径 nebula> FIND SHORTEST PATH FROM "player100", "player130" TO "player132", "player133" OVER * BIDIRECT UPTO 18 STEPS YIELD path as p; +------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | p | @@ -107,7 +107,7 @@ nebula> FIND SHORTEST PATH FROM "player100", "player130" TO "player132", "player ```ngql -# 查找所有从player100到team204,并且degree为空或者大于等于0的路径 +# 查找所有从 player100 到 team204,并且 degree 为空或者大于等于 0 的路径 nebula> FIND ALL PATH FROM "player100" TO "team204" OVER * WHERE follow.degree is EMPTY or follow.degree >=0 YIELD path AS p; +------------------------------------------------------------------------------+ | p | @@ -120,7 +120,7 @@ nebula> FIND ALL PATH FROM "player100" TO "team204" OVER * WHERE follow.degree i ``` ```ngql -# 查找所有从player100到team204无环路径 +# 查找所有从 player100 到 team204 无环路径 nebula> FIND NOLOOP PATH FROM "player100" TO "team204" OVER * YIELD path AS p; +--------------------------------------------------------------------------------------------------------+ | p | From 763a8e1b15370f45e5a674ee4d70a4f284a14263 Mon Sep 17 00:00:00 2001 From: "abby.huang" <78209557+abby-cyber@users.noreply.github.com> Date: Tue, 26 Dec 2023 14:31:24 +0800 Subject: [PATCH 3/3] Update 6.find-path.md --- .../7.general-query-statements/6.find-path.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs-2.0-zh/3.ngql-guide/7.general-query-statements/6.find-path.md b/docs-2.0-zh/3.ngql-guide/7.general-query-statements/6.find-path.md index 460f667b6af..f7554d16b5a 100644 --- a/docs-2.0-zh/3.ngql-guide/7.general-query-statements/6.find-path.md +++ b/docs-2.0-zh/3.ngql-guide/7.general-query-statements/6.find-path.md @@ -67,7 +67,7 @@ YIELD path as 返回的路径格式类似于`()-[:@]->( FIND SHORTEST PATH FROM "player102" TO "team204" OVER * YIELD path AS p; +--------------------------------------------+ | p | @@ -77,7 +77,7 @@ nebula> FIND SHORTEST PATH FROM "player102" TO "team204" OVER * YIELD path AS p; ``` ```ngql -# 查找并返回带属性值的 team204 到 player100 的最短反向路径 +# 查找并返回带属性值的 team204 到 player100 的最短反向路径。 nebula> FIND SHORTEST PATH WITH PROP FROM "team204" TO "player100" OVER * REVERSELY YIELD path AS p; +--------------------------------------------------------------------------------------------------------------------------------------+ | p | @@ -87,7 +87,7 @@ nebula> FIND SHORTEST PATH WITH PROP FROM "team204" TO "player100" OVER * REVERS ``` ```ngql -# 查找并返回起点为 player100,player130 而终点为 player132,player133 的 18 跳之内双向最短路径 +# 查找并返回起点为 player100,player130 而终点为 player132,player133 的 18 跳之内双向最短路径。 nebula> FIND SHORTEST PATH FROM "player100", "player130" TO "player132", "player133" OVER * BIDIRECT UPTO 18 STEPS YIELD path as p; +------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | p | @@ -107,7 +107,7 @@ nebula> FIND SHORTEST PATH FROM "player100", "player130" TO "player132", "player ```ngql -# 查找所有从 player100 到 team204,并且 degree 为空或者大于等于 0 的路径 +# 查找所有从 player100 到 team204,并且 degree 为空或者大于等于 0 的路径。 nebula> FIND ALL PATH FROM "player100" TO "team204" OVER * WHERE follow.degree is EMPTY or follow.degree >=0 YIELD path AS p; +------------------------------------------------------------------------------+ | p | @@ -120,7 +120,7 @@ nebula> FIND ALL PATH FROM "player100" TO "team204" OVER * WHERE follow.degree i ``` ```ngql -# 查找所有从 player100 到 team204 无环路径 +# 查找所有从 player100 到 team204 无环路径。 nebula> FIND NOLOOP PATH FROM "player100" TO "team204" OVER * YIELD path AS p; +--------------------------------------------------------------------------------------------------------+ | p |