@@ -152,9 +152,9 @@ nebula> GO FROM "player100" OVER follow REVERSELY \
152
152
+---------------------+-----------------+
153
153
| FriendOf | Team |
154
154
+---------------------+-----------------+
155
- | "Danny Green" | "Spurs" |
156
- | "Danny Green " | "Cavaliers" |
157
- +---------------------+-----------------+
155
+ | "Boris Diaw" | "Spurs" |
156
+ | "Boris Diaw " | "Jazz" |
157
+ | "Boris Diaw" | "Suns" |
158
158
...
159
159
160
160
# 该MATCH查询与上一个GO查询具有相同的语义。
@@ -164,34 +164,9 @@ nebula> MATCH (v)<-[e:follow]- (v2)-[e2:serve]->(v3) \
164
164
+---------------------+-----------------+
165
165
| FriendOf | Team |
166
166
+---------------------+-----------------+
167
- | "Tony Parker" | "Spurs" |
168
- | "Tony Parker" | "Hornets" |
169
- +---------------------+-----------------+
170
- ...
171
- ```
172
-
173
- ``` ngql
174
- # 返回player102所有邻居点。
175
- nebula> GO FROM "player102" OVER follow \
176
- YIELD dst(edge) AS both;
177
- +-------------+
178
- | both |
179
- +-------------+
180
- | "player100" |
181
- | "player101" |
182
- +-------------+
183
- ...
184
-
185
- # 该MATCH查询与上一个GO查询具有相同的语义。
186
- nebula> MATCH (v) -[e:follow]-(v2) \
187
- WHERE id(v)== "player102" \
188
- RETURN id(v2) AS both;
189
- +-------------+
190
- | both |
191
- +-------------+
192
- | "player101" |
193
- | "player103" |
194
- +-------------+
167
+ | "Boris Diaw" | "Spurs" |
168
+ | "Boris Diaw" | "Jazz" |
169
+ | "Boris Diaw" | "Suns" |
195
170
...
196
171
```
197
172
@@ -204,7 +179,6 @@ nebula> GO 1 TO 2 STEPS FROM "player100" OVER follow \
204
179
+-------------+
205
180
| "player101" |
206
181
| "player125" |
207
- +-------------+
208
182
...
209
183
210
184
# 该MATCH查询与上一个GO查询具有相同的语义。
@@ -216,7 +190,7 @@ nebula> MATCH (v) -[e:follow*1..2]->(v2) \
216
190
+-------------+
217
191
| "player100" |
218
192
| "player102" |
219
- +-------------+
193
+ ...
220
194
```
221
195
222
196
``` ngql
0 commit comments