Skip to content

Commit

Permalink
Add a note to nested repeat section about new sample. #115
Browse files Browse the repository at this point in the history
  • Loading branch information
krlawrence committed Jul 9, 2019
1 parent 15ce1ab commit e5447a2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion book/Gremlin-Graph-Guide.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Kelvin R. Lawrence <gfxman@yahoo.com>
//v281 (TP 3.3.5), January 28th 2019
v282-preview, July 9th 2019
// vim: set tw=85 cc=+1 wrap spell redrawtime=20000:
// Tue Jul 09, 2019 12:18:42 CDT
// Tue Jul 09, 2019 13:58:11 CDT
//:Author: Kelvin R. Lawrence
//:Email: gfxman@yahoo.com
:Numbered:
Expand Down Expand Up @@ -6869,6 +6869,10 @@ ideal use case for using nested repeat steps. Most of the edges are routes and
of the vertices are airports. However, if your data had a broader variety of vertex
and edge types, this capability may come in quite handy.

NOTE: There is a stand alone example in the `sample-code` folder that creates a small
social graph and performs various nested 'repeat' step operations. That sample is
located here: https://github.com/krlawrence/graph/blob/master/sample-code/nested-repeat.groovy

When using nested 'repeat' steps, in order for a 'loops' step to know which repeat
step it is attached to it is necessary to give each 'repeat' step its own label name.
The example below gives the 'repeat' step a label of '"r1"' and refers to that label
Expand Down

0 comments on commit e5447a2

Please sign in to comment.