Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add path #618

Merged
merged 3 commits into from
Jun 21, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions docs-2.0/1.introduction/2.1.path.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,18 @@

openCypher兼容语句的`MATCH`语句采用的是`trail`类型路径。

在trail类型中,还有 `cycle` 和 `circuit` 两种特殊的路径类型,以下图为例对这两种特殊的路径类型进行介绍。

![trail示例](../20.appendix/Circuits.png)

- cycle

`cycle` 是封闭的 `trail` 类型的路径,遍历时边不可以重复,起点和终点重复,并且没有其他点重复。在此示例图中,最长路径由三条边组成:`A->B->C->A`或`C->D->E->C`.

- circuit

`circuit` 也是封闭的 `trail` 类型的路径,遍历时边不可以重复,除起点和终点重复外,可能存在其他点重复。在此示例图中,最长路径为:`A->B->C->D->E->C->A`。

## path

`path`类型的路径由有限的边序列构成。遍历时点和边都不可以重复。
foesa-yang marked this conversation as resolved.
Show resolved Hide resolved
Expand Down
Binary file added docs-2.0/20.appendix/Circuits.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.