Skip to content

Commit 7a3e06b

Browse files
authored
[GIE Doc] Update Doc for PathExpand Step Usage in GIE (#2877)
<!-- Thanks for your contribution! please review https://github.com/alibaba/GraphScope/blob/main/CONTRIBUTING.md before opening an issue. --> ## What do these changes do? <!-- Please give a short brief about these changes. --> As titled. ## Related issue number <!-- Are there any issues opened that will be resolved by merging this change? --> #2776
1 parent 387f915 commit 7a3e06b

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

docs/interactive_engine/supported_gremlin_steps.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -544,6 +544,9 @@ keyValuePair - the options to configure the corresponding behaviors of the `Path
544544
# vertices can be duplicated and only the end vertex should be kept
545545
g.V().out("1..10").with('PATH_OPT', 'ARBITRARY').with('RESULT_OPT', 'END_V')
546546
# expand hops within the range of [1, 10) along the outgoing edges,
547+
# vertices and edges can be duplicated, and all vertices and edges along the path should be kept
548+
g.V().out("1..10").with('PATH_OPT', 'ARBITRARY').with('RESULT_OPT', 'ALL_V_E')
549+
# expand hops within the range of [1, 10) along the outgoing edges,
547550
# vertices can not be duplicated and all vertices should be kept
548551
g.V().out("1..10").with('PATH_OPT', 'SIMPLE').with('RESULT_OPT', 'ALL_V')
549552
# = g.V().out("1..10").with('PATH_OPT', 'ARBITRARY').with('RESULT_OPT', 'END_V')
@@ -560,6 +563,9 @@ Running Example:
560563
gremlin> g.V().out("1..3", "knows").with('RESULT_OPT', 'ALL_V')
561564
==>[v[1], v[2]]
562565
==>[v[1], v[4]]
566+
gremlin> g.V().out("1..3", "knows").with('RESULT_OPT', 'ALL_V_E')
567+
==>[v[1], e[0][1-knows->2], v[2]]
568+
==>[v[1], e[2][1-knows->4], v[4]]
563569
gremlin> g.V().out("1..3", "knows").with('RESULT_OPT', 'END_V').endV()
564570
==>v[2]
565571
==>v[4]
@@ -574,6 +580,9 @@ Running Example:
574580
gremlin> g.V().in("1..3", "knows").with('RESULT_OPT', 'ALL_V')
575581
==>[v[2], v[1]]
576582
==>[v[4], v[1]]
583+
gremlin> g.V().in("1..3", "knows").with('RESULT_OPT', 'ALL_V_E')
584+
==>[v[2], e[0][1-knows->2], v[1]]
585+
==>[v[4], e[2][1-knows->4], v[1]]
577586
gremlin> g.V().in("1..3", "knows").with('RESULT_OPT', 'END_V').endV()
578587
==>v[1]
579588
==>v[1]
@@ -596,6 +605,17 @@ gremlin> g.V().both("1..3", "knows").with('RESULT_OPT', 'ALL_V')
596605
==>[v[1], v[4], v[1]]
597606
==>[v[4], v[1], v[2]]
598607
==>[v[4], v[1], v[4]]
608+
gremlin> g.V().both("1..3", "knows").with('RESULT_OPT', 'ALL_V_E')
609+
==>[v[2], e[0][1-knows->2], v[1]]
610+
==>[v[4], e[2][1-knows->4], v[1]]
611+
==>[v[1], e[0][1-knows->2], v[2]]
612+
==>[v[1], e[2][1-knows->4], v[4]]
613+
==>[v[2], e[0][1-knows->2], v[1], e[0][1-knows->2], v[2]]
614+
==>[v[2], e[0][1-knows->2], v[1], e[2][1-knows->4], v[4]]
615+
==>[v[4], e[2][1-knows->4], v[1], e[0][1-knows->2], v[2]]
616+
==>[v[4], e[2][1-knows->4], v[1], e[2][1-knows->4], v[4]]
617+
==>[v[1], e[0][1-knows->2], v[2], e[0][1-knows->2], v[1]]
618+
==>[v[1], e[2][1-knows->4], v[4], e[2][1-knows->4], v[1]]
599619
gremlin> g.V().both("1..3", "knows").with('RESULT_OPT', 'END_V').endV()
600620
==>v[1]
601621
==>v[1]

0 commit comments

Comments
 (0)