Modified: tinkerpop/site/docs/4.0.0-SNAPSHOT/recipes/index.html URL: http://svn.apache.org/viewvc/tinkerpop/site/docs/4.0.0-SNAPSHOT/recipes/index.html?rev=1923180&r1=1923179&r2=1923180&view=diff ============================================================================== --- tinkerpop/site/docs/4.0.0-SNAPSHOT/recipes/index.html (original) +++ tinkerpop/site/docs/4.0.0-SNAPSHOT/recipes/index.html Fri Jan 17 02:11:00 2025 @@ -936,10 +936,10 @@ provide some basic building blocks for v traversal on the paths found between them. Consider the following examples using the modern toy graph:</p> </div> <section class="tabs tabs-2"> - <input id="tab-1733358256-1" type="radio" name="radio-set-1733358256-1" class="tab-selector-1" checked="checked" /> - <label for="tab-1733358256-1" class="tab-label-1">console (groovy)</label> - <input id="tab-1733358256-2" type="radio" name="radio-set-1733358256-1" class="tab-selector-2" /> - <label for="tab-1733358256-2" class="tab-label-2">groovy</label> + <input id="tab-1737073809-1" type="radio" name="radio-set-1737073809-1" class="tab-selector-1" checked="checked" /> + <label for="tab-1737073809-1" class="tab-label-1">console (groovy)</label> + <input id="tab-1737073809-2" type="radio" name="radio-set-1737073809-1" class="tab-selector-2" /> + <label for="tab-1737073809-2" class="tab-label-2">groovy</label> <div class="tabcontent"> <div class="tabcontent-1"> <div class="listingblock"> @@ -1014,10 +1014,10 @@ scenarios. For one such example, conside vertices:</p> </div> <section class="tabs tabs-2"> - <input id="tab-1733358256-3" type="radio" name="radio-set-1733358256-3" class="tab-selector-1" checked="checked" /> - <label for="tab-1733358256-3" class="tab-label-1">console (groovy)</label> - <input id="tab-1733358256-4" type="radio" name="radio-set-1733358256-3" class="tab-selector-2" /> - <label for="tab-1733358256-4" class="tab-label-2">groovy</label> + <input id="tab-1737073809-3" type="radio" name="radio-set-1737073809-3" class="tab-selector-1" checked="checked" /> + <label for="tab-1737073809-3" class="tab-label-1">console (groovy)</label> + <input id="tab-1737073809-4" type="radio" name="radio-set-1737073809-3" class="tab-selector-2" /> + <label for="tab-1737073809-4" class="tab-label-2">groovy</label> <div class="tabcontent"> <div class="tabcontent-1"> <div class="listingblock"> @@ -1066,10 +1066,10 @@ to extract the known job, the company th the known person completed an application.</p> </div> <section class="tabs tabs-2"> - <input id="tab-1733358256-5" type="radio" name="radio-set-1733358256-5" class="tab-selector-1" checked="checked" /> - <label for="tab-1733358256-5" class="tab-label-1">console (groovy)</label> - <input id="tab-1733358256-6" type="radio" name="radio-set-1733358256-5" class="tab-selector-2" /> - <label for="tab-1733358256-6" class="tab-label-2">groovy</label> + <input id="tab-1737073809-5" type="radio" name="radio-set-1737073809-5" class="tab-selector-1" checked="checked" /> + <label for="tab-1737073809-5" class="tab-label-1">console (groovy)</label> + <input id="tab-1737073809-6" type="radio" name="radio-set-1737073809-5" class="tab-selector-2" /> + <label for="tab-1737073809-6" class="tab-label-2">groovy</label> <div class="tabcontent"> <div class="tabcontent-1"> <div class="listingblock"> @@ -1205,10 +1205,10 @@ demonstrate how some of these different edges associated to each vertex. The following examples use the modern toy graph:</p> </div> <section class="tabs tabs-2"> - <input id="tab-1733358275-1" type="radio" name="radio-set-1733358275-1" class="tab-selector-1" checked="checked" /> - <label for="tab-1733358275-1" class="tab-label-1">console (groovy)</label> - <input id="tab-1733358275-2" type="radio" name="radio-set-1733358275-1" class="tab-selector-2" /> - <label for="tab-1733358275-2" class="tab-label-2">groovy</label> + <input id="tab-1737073819-1" type="radio" name="radio-set-1737073819-1" class="tab-selector-1" checked="checked" /> + <label for="tab-1737073819-1" class="tab-label-1">console (groovy)</label> + <input id="tab-1737073819-2" type="radio" name="radio-set-1737073819-1" class="tab-selector-2" /> + <label for="tab-1737073819-2" class="tab-label-2">groovy</label> <div class="tabcontent"> <div class="tabcontent-1"> <div class="listingblock"> @@ -1303,10 +1303,10 @@ graph for demonstration purposes:</p> <p><span class="image"><img src="../images/betweeness-example.png" alt="betweeness example" width="600"></span></p> </div> <section class="tabs tabs-2"> - <input id="tab-1733358275-3" type="radio" name="radio-set-1733358275-3" class="tab-selector-1" checked="checked" /> - <label for="tab-1733358275-3" class="tab-label-1">console (groovy )</label> - <input id="tab-1733358275-4" type="radio" name="radio-set-1733358275-3" class="tab-selector-2" /> - <label for="tab-1733358275-4" class="tab-label-2">groovy </label> + <input id="tab-1737073819-3" type="radio" name="radio-set-1737073819-3" class="tab-selector-1" checked="checked" /> + <label for="tab-1737073819-3" class="tab-label-1">console (groovy )</label> + <input id="tab-1737073819-4" type="radio" name="radio-set-1737073819-3" class="tab-selector-2" /> + <label for="tab-1737073819-4" class="tab-label-2">groovy </label> <div class="tabcontent"> <div class="tabcontent-1"> <div class="listingblock"> @@ -1434,10 +1434,10 @@ pairs). other reachable vertices in the graph. The following examples use the modern toy graph:</p> </div> <section class="tabs tabs-2"> - <input id="tab-1733358275-5" type="radio" name="radio-set-1733358275-5" class="tab-selector-1" checked="checked" /> - <label for="tab-1733358275-5" class="tab-label-1">console (groovy)</label> - <input id="tab-1733358275-6" type="radio" name="radio-set-1733358275-5" class="tab-selector-2" /> - <label for="tab-1733358275-6" class="tab-label-2">groovy</label> + <input id="tab-1737073819-5" type="radio" name="radio-set-1737073819-5" class="tab-selector-1" checked="checked" /> + <label for="tab-1737073819-5" class="tab-label-1">console (groovy)</label> + <input id="tab-1737073819-6" type="radio" name="radio-set-1737073819-5" class="tab-selector-2" /> + <label for="tab-1737073819-6" class="tab-label-2">groovy</label> <div class="tabcontent"> <div class="tabcontent-1"> <div class="listingblock"> @@ -1540,10 +1540,10 @@ relative importance of adjacent vertices give it the highest rank. Consider the following example using the Grateful Dead graph:</p> </div> <section class="tabs tabs-2"> - <input id="tab-1733358275-7" type="radio" name="radio-set-1733358275-7" class="tab-selector-1" checked="checked" /> - <label for="tab-1733358275-7" class="tab-label-1">console (groovy)</label> - <input id="tab-1733358275-8" type="radio" name="radio-set-1733358275-7" class="tab-selector-2" /> - <label for="tab-1733358275-8" class="tab-label-2">groovy</label> + <input id="tab-1737073819-7" type="radio" name="radio-set-1737073819-7" class="tab-selector-1" checked="checked" /> + <label for="tab-1737073819-7" class="tab-label-1">console (groovy)</label> + <input id="tab-1737073819-8" type="radio" name="radio-set-1737073819-7" class="tab-selector-2" /> + <label for="tab-1737073819-8" class="tab-label-2">groovy</label> <div class="tabcontent"> <div class="tabcontent-1"> <div class="listingblock"> @@ -1622,10 +1622,10 @@ can shorten the time required to get a r <code>GraphComputer</code> (OLAP) based traversals.</p> </div> <section class="tabs tabs-2"> - <input id="tab-1733358275-9" type="radio" name="radio-set-1733358275-9" class="tab-selector-1" checked="checked" /> - <label for="tab-1733358275-9" class="tab-label-1">console (groovy)</label> - <input id="tab-1733358275-10" type="radio" name="radio-set-1733358275-9" class="tab-selector-2" /> - <label for="tab-1733358275-10" class="tab-label-2">groovy</label> + <input id="tab-1737073819-9" type="radio" name="radio-set-1737073819-9" class="tab-selector-1" checked="checked" /> + <label for="tab-1737073819-9" class="tab-label-1">console (groovy)</label> + <input id="tab-1737073819-10" type="radio" name="radio-set-1737073819-9" class="tab-selector-2" /> + <label for="tab-1737073819-10" class="tab-label-2">groovy</label> <div class="tabcontent"> <div class="tabcontent-1"> <div class="listingblock"> @@ -1633,12 +1633,12 @@ can shorten the time required to get a r <pre class="CodeRay highlight"><code data-lang="groovy">gremlin> g = traversal().with(graph).withComputer() ==>graphtraversalsource[tinkergraph[<span class="key">vertices</span>:<span class="integer">6</span> <span class="key">edges</span>:<span class="integer">6</span>], graphcomputer] gremlin> g.V().pageRank().with(PageRank.propertyName,<span class="string"><span class="delimiter">'</span><span class="content">pageRank</span><span class="delimiter">'</span></span>).values(<span class="string"><span class="delimiter">'</span><span class="content">pageRank</span><span class="delimiter">'</span></span>) -==><span class="float">0.30472009079122486</span> ==><span class="float">0.11375510357865537</span> ==><span class="float">0.11375510357865537</span> +==><span class="float">0.1757988989970823</span> ==><span class="float">0.14598540152719103</span> ==><span class="float">0.14598540152719103</span> -==><span class="float">0.1757988989970823</span></code></pre> +==><span class="float">0.3047200907912249</span></code></pre> </div> </div> </div> @@ -1683,10 +1683,10 @@ patterns described in this section.</p> appear by way of some side-effect steps like <code>aggregate()</code>:</p> </div> <section class="tabs tabs-2"> - <input id="tab-1733358295-1" type="radio" name="radio-set-1733358295-1" class="tab-selector-1" checked="checked" /> - <label for="tab-1733358295-1" class="tab-label-1">console (groovy)</label> - <input id="tab-1733358295-2" type="radio" name="radio-set-1733358295-1" class="tab-selector-2" /> - <label for="tab-1733358295-2" class="tab-label-2">groovy</label> + <input id="tab-1737073830-1" type="radio" name="radio-set-1737073830-1" class="tab-selector-1" checked="checked" /> + <label for="tab-1737073830-1" class="tab-label-1">console (groovy)</label> + <input id="tab-1737073830-2" type="radio" name="radio-set-1737073830-1" class="tab-selector-2" /> + <label for="tab-1737073830-2" class="tab-label-2">groovy</label> <div class="tabcontent"> <div class="tabcontent-1"> <div class="listingblock"> @@ -1715,10 +1715,10 @@ g.V().aggregate(local, <span class="stri similar fashion to lists:</p> </div> <section class="tabs tabs-2"> - <input id="tab-1733358295-3" type="radio" name="radio-set-1733358295-3" class="tab-selector-1" checked="checked" /> - <label for="tab-1733358295-3" class="tab-label-1">console (groovy)</label> - <input id="tab-1733358295-4" type="radio" name="radio-set-1733358295-3" class="tab-selector-2" /> - <label for="tab-1733358295-4" class="tab-label-2">groovy</label> + <input id="tab-1737073830-3" type="radio" name="radio-set-1737073830-3" class="tab-selector-1" checked="checked" /> + <label for="tab-1737073830-3" class="tab-label-1">console (groovy)</label> + <input id="tab-1737073830-4" type="radio" name="radio-set-1737073830-3" class="tab-selector-2" /> + <label for="tab-1737073830-4" class="tab-label-2">groovy</label> <div class="tabcontent"> <div class="tabcontent-1"> <div class="listingblock"> @@ -1751,10 +1751,10 @@ means than what is demonstrated.</p> <p>It may seem simple, but the most obvious choice to modifying what is in a list is to simply <code>unfold()</code> the <code>List</code>:</p> </div> <section class="tabs tabs-2"> - <input id="tab-1733358295-5" type="radio" name="radio-set-1733358295-5" class="tab-selector-1" checked="checked" /> - <label for="tab-1733358295-5" class="tab-label-1">console (groovy)</label> - <input id="tab-1733358295-6" type="radio" name="radio-set-1733358295-5" class="tab-selector-2" /> - <label for="tab-1733358295-6" class="tab-label-2">groovy</label> + <input id="tab-1737073830-5" type="radio" name="radio-set-1737073830-5" class="tab-selector-1" checked="checked" /> + <label for="tab-1737073830-5" class="tab-label-1">console (groovy)</label> + <input id="tab-1737073830-6" type="radio" name="radio-set-1737073830-5" class="tab-selector-2" /> + <label for="tab-1737073830-6" class="tab-label-2">groovy</label> <div class="tabcontent"> <div class="tabcontent-1"> <div class="listingblock"> @@ -1794,10 +1794,10 @@ traverser as it just flattens <code>List result, but consider what happens when there is more than one:</p> </div> <section class="tabs tabs-2"> - <input id="tab-1733358295-7" type="radio" name="radio-set-1733358295-7" class="tab-selector-1" checked="checked" /> - <label for="tab-1733358295-7" class="tab-label-1">console (groovy)</label> - <input id="tab-1733358295-8" type="radio" name="radio-set-1733358295-7" class="tab-selector-2" /> - <label for="tab-1733358295-8" class="tab-label-2">groovy</label> + <input id="tab-1737073830-7" type="radio" name="radio-set-1737073830-7" class="tab-selector-1" checked="checked" /> + <label for="tab-1737073830-7" class="tab-label-1">console (groovy)</label> + <input id="tab-1737073830-8" type="radio" name="radio-set-1737073830-7" class="tab-selector-2" /> + <label for="tab-1737073830-8" class="tab-label-2">groovy</label> <div class="tabcontent"> <div class="tabcontent-1"> <div class="listingblock"> @@ -1839,10 +1839,10 @@ While this approach may be acceptable, t structure of the <code>List</code> traversers "locally" <code>unfold()</code> the lists to transform them:</p> </div> <section class="tabs tabs-2"> - <input id="tab-1733358295-9" type="radio" name="radio-set-1733358295-9" class="tab-selector-1" checked="checked" /> - <label for="tab-1733358295-9" class="tab-label-1">console (groovy)</label> - <input id="tab-1733358295-10" type="radio" name="radio-set-1733358295-9" class="tab-selector-2" /> - <label for="tab-1733358295-10" class="tab-label-2">groovy</label> + <input id="tab-1737073830-9" type="radio" name="radio-set-1737073830-9" class="tab-selector-1" checked="checked" /> + <label for="tab-1737073830-9" class="tab-label-1">console (groovy)</label> + <input id="tab-1737073830-10" type="radio" name="radio-set-1737073830-9" class="tab-selector-2" /> + <label for="tab-1737073830-10" class="tab-label-2">groovy</label> <div class="tabcontent"> <div class="tabcontent-1"> <div class="listingblock"> @@ -1877,10 +1877,10 @@ thus maintaining two traverser results.< <p>This pattern for unfolding and folding <code>List</code> traversers ends up having other applications:</p> </div> <section class="tabs tabs-2"> - <input id="tab-1733358295-11" type="radio" name="radio-set-1733358295-11" class="tab-selector-1" checked="checked" /> - <label for="tab-1733358295-11" class="tab-label-1">console (groovy)</label> - <input id="tab-1733358295-12" type="radio" name="radio-set-1733358295-11" class="tab-selector-2" /> - <label for="tab-1733358295-12" class="tab-label-2">groovy</label> + <input id="tab-1737073830-11" type="radio" name="radio-set-1737073830-11" class="tab-selector-1" checked="checked" /> + <label for="tab-1737073830-11" class="tab-label-1">console (groovy)</label> + <input id="tab-1737073830-12" type="radio" name="radio-set-1737073830-11" class="tab-selector-2" /> + <label for="tab-1737073830-12" class="tab-label-2">groovy</label> <div class="tabcontent"> <div class="tabcontent-1"> <div class="listingblock"> @@ -1958,10 +1958,10 @@ especially in cases where the expected o form of a <code>List</code>. For example, consider the following three traversals:</p> </div> <section class="tabs tabs-2"> - <input id="tab-1733358295-13" type="radio" name="radio-set-1733358295-13" class="tab-selector-1" checked="checked" /> - <label for="tab-1733358295-13" class="tab-label-1">console (groovy)</label> - <input id="tab-1733358295-14" type="radio" name="radio-set-1733358295-13" class="tab-selector-2" /> - <label for="tab-1733358295-14" class="tab-label-2">groovy</label> + <input id="tab-1737073830-13" type="radio" name="radio-set-1737073830-13" class="tab-selector-1" checked="checked" /> + <label for="tab-1737073830-13" class="tab-label-1">console (groovy)</label> + <input id="tab-1737073830-14" type="radio" name="radio-set-1737073830-13" class="tab-selector-2" /> + <label for="tab-1737073830-14" class="tab-label-2">groovy</label> <div class="tabcontent"> <div class="tabcontent-1"> <div class="listingblock"> @@ -2042,10 +2042,10 @@ three results (i.e. triple) that could t the use of <code>aggregate()</code> to aid in construction of this <code>List</code>:</p> </div> <section class="tabs tabs-2"> - <input id="tab-1733358295-15" type="radio" name="radio-set-1733358295-15" class="tab-selector-1" checked="checked" /> - <label for="tab-1733358295-15" class="tab-label-1">console (groovy)</label> - <input id="tab-1733358295-16" type="radio" name="radio-set-1733358295-15" class="tab-selector-2" /> - <label for="tab-1733358295-16" class="tab-label-2">groovy</label> + <input id="tab-1737073830-15" type="radio" name="radio-set-1737073830-15" class="tab-selector-1" checked="checked" /> + <label for="tab-1737073830-15" class="tab-label-1">console (groovy)</label> + <input id="tab-1737073830-16" type="radio" name="radio-set-1737073830-15" class="tab-selector-2" /> + <label for="tab-1737073830-16" class="tab-label-2">groovy</label> <div class="tabcontent"> <div class="tabcontent-1"> <div class="listingblock"> @@ -2157,10 +2157,10 @@ means that each traverser can effectivel vertices each:</p> </div> <section class="tabs tabs-2"> - <input id="tab-1733358295-17" type="radio" name="radio-set-1733358295-17" class="tab-selector-1" checked="checked" /> - <label for="tab-1733358295-17" class="tab-label-1">console (groovy)</label> - <input id="tab-1733358295-18" type="radio" name="radio-set-1733358295-17" class="tab-selector-2" /> - <label for="tab-1733358295-18" class="tab-label-2">groovy</label> + <input id="tab-1737073830-17" type="radio" name="radio-set-1737073830-17" class="tab-selector-1" checked="checked" /> + <label for="tab-1737073830-17" class="tab-label-1">console (groovy)</label> + <input id="tab-1737073830-18" type="radio" name="radio-set-1737073830-17" class="tab-selector-2" /> + <label for="tab-1737073830-18" class="tab-label-2">groovy</label> <div class="tabcontent"> <div class="tabcontent-1"> <div class="listingblock"> @@ -2187,10 +2187,10 @@ vertices each:</p> results.</p> </div> <section class="tabs tabs-2"> - <input id="tab-1733358295-19" type="radio" name="radio-set-1733358295-19" class="tab-selector-1" checked="checked" /> - <label for="tab-1733358295-19" class="tab-label-1">console (groovy)</label> - <input id="tab-1733358295-20" type="radio" name="radio-set-1733358295-19" class="tab-selector-2" /> - <label for="tab-1733358295-20" class="tab-label-2">groovy</label> + <input id="tab-1737073830-19" type="radio" name="radio-set-1737073830-19" class="tab-selector-1" checked="checked" /> + <label for="tab-1737073830-19" class="tab-label-1">console (groovy)</label> + <input id="tab-1737073830-20" type="radio" name="radio-set-1737073830-19" class="tab-selector-2" /> + <label for="tab-1737073830-20" class="tab-label-2">groovy</label> <div class="tabcontent"> <div class="tabcontent-1"> <div class="listingblock"> @@ -2271,10 +2271,10 @@ need for the transformation, the explana to end up with a <code>Map</code> is with <code>valueMap()</code>:</p> </div> <section class="tabs tabs-2"> - <input id="tab-1733358295-21" type="radio" name="radio-set-1733358295-21" class="tab-selector-1" checked="checked" /> - <label for="tab-1733358295-21" class="tab-label-1">console (groovy)</label> - <input id="tab-1733358295-22" type="radio" name="radio-set-1733358295-21" class="tab-selector-2" /> - <label for="tab-1733358295-22" class="tab-label-2">groovy</label> + <input id="tab-1737073830-21" type="radio" name="radio-set-1737073830-21" class="tab-selector-1" checked="checked" /> + <label for="tab-1737073830-21" class="tab-label-1">console (groovy)</label> + <input id="tab-1737073830-22" type="radio" name="radio-set-1737073830-21" class="tab-selector-2" /> + <label for="tab-1737073830-22" class="tab-label-2">groovy</label> <div class="tabcontent"> <div class="tabcontent-1"> <div class="listingblock"> @@ -2301,10 +2301,10 @@ property stored as a <code>List</code>. by avoiding use of <code>valueMap()</code>:</p> </div> <section class="tabs tabs-2"> - <input id="tab-1733358295-23" type="radio" name="radio-set-1733358295-23" class="tab-selector-1" checked="checked" /> - <label for="tab-1733358295-23" class="tab-label-1">console (groovy)</label> - <input id="tab-1733358295-24" type="radio" name="radio-set-1733358295-23" class="tab-selector-2" /> - <label for="tab-1733358295-24" class="tab-label-2">groovy</label> + <input id="tab-1737073830-23" type="radio" name="radio-set-1737073830-23" class="tab-selector-1" checked="checked" /> + <label for="tab-1737073830-23" class="tab-label-1">console (groovy)</label> + <input id="tab-1737073830-24" type="radio" name="radio-set-1737073830-23" class="tab-selector-2" /> + <label for="tab-1737073830-24" class="tab-label-2">groovy</label> <div class="tabcontent"> <div class="tabcontent-1"> <div class="listingblock"> @@ -2334,10 +2334,10 @@ by avoiding use of <code>valueMap()</cod generally applicable to processing any <code>Map</code> instances with any sorts of values:</p> </div> <section class="tabs tabs-2"> - <input id="tab-1733358295-25" type="radio" name="radio-set-1733358295-25" class="tab-selector-1" checked="checked" /> - <label for="tab-1733358295-25" class="tab-label-1">console (groovy)</label> - <input id="tab-1733358295-26" type="radio" name="radio-set-1733358295-25" class="tab-selector-2" /> - <label for="tab-1733358295-26" class="tab-label-2">groovy</label> + <input id="tab-1737073830-25" type="radio" name="radio-set-1737073830-25" class="tab-selector-1" checked="checked" /> + <label for="tab-1737073830-25" class="tab-label-1">console (groovy)</label> + <input id="tab-1737073830-26" type="radio" name="radio-set-1737073830-25" class="tab-selector-2" /> + <label for="tab-1737073830-26" class="tab-label-2">groovy</label> <div class="tabcontent"> <div class="tabcontent-1"> <div class="listingblock"> @@ -2387,10 +2387,10 @@ desired output before taking this approa unavoidable extraneous keys in the output <code>Map</code>:</p> </div> <section class="tabs tabs-2"> - <input id="tab-1733358295-27" type="radio" name="radio-set-1733358295-27" class="tab-selector-1" checked="checked" /> - <label for="tab-1733358295-27" class="tab-label-1">console (groovy)</label> - <input id="tab-1733358295-28" type="radio" name="radio-set-1733358295-27" class="tab-selector-2" /> - <label for="tab-1733358295-28" class="tab-label-2">groovy</label> + <input id="tab-1737073830-27" type="radio" name="radio-set-1737073830-27" class="tab-selector-1" checked="checked" /> + <label for="tab-1737073830-27" class="tab-label-1">console (groovy)</label> + <input id="tab-1737073830-28" type="radio" name="radio-set-1737073830-27" class="tab-selector-2" /> + <label for="tab-1737073830-28" class="tab-label-2">groovy</label> <div class="tabcontent"> <div class="tabcontent-1"> <div class="listingblock"> @@ -2430,10 +2430,10 @@ every single vertex in the traversal str supplied. While this may be an acceptable output, it is possible to shape the <code>Map</code> to be "nicer":</p> </div> <section class="tabs tabs-2"> - <input id="tab-1733358295-29" type="radio" name="radio-set-1733358295-29" class="tab-selector-1" checked="checked" /> - <label for="tab-1733358295-29" class="tab-label-1">console (groovy)</label> - <input id="tab-1733358295-30" type="radio" name="radio-set-1733358295-29" class="tab-selector-2" /> - <label for="tab-1733358295-30" class="tab-label-2">groovy</label> + <input id="tab-1737073830-29" type="radio" name="radio-set-1737073830-29" class="tab-selector-1" checked="checked" /> + <label for="tab-1737073830-29" class="tab-label-1">console (groovy)</label> + <input id="tab-1737073830-30" type="radio" name="radio-set-1737073830-29" class="tab-selector-2" /> + <label for="tab-1737073830-30" class="tab-label-2">groovy</label> <div class="tabcontent"> <div class="tabcontent-1"> <div class="listingblock"> @@ -2483,10 +2483,10 @@ prior to reconstructing the <code>Map</c earlier to flatten <code>List</code> values within a <code>Map</code>:</p> </div> <section class="tabs tabs-2"> - <input id="tab-1733358295-31" type="radio" name="radio-set-1733358295-31" class="tab-selector-1" checked="checked" /> - <label for="tab-1733358295-31" class="tab-label-1">console (groovy)</label> - <input id="tab-1733358295-32" type="radio" name="radio-set-1733358295-31" class="tab-selector-2" /> - <label for="tab-1733358295-32" class="tab-label-2">groovy</label> + <input id="tab-1737073830-31" type="radio" name="radio-set-1737073830-31" class="tab-selector-1" checked="checked" /> + <label for="tab-1737073830-31" class="tab-label-1">console (groovy)</label> + <input id="tab-1737073830-32" type="radio" name="radio-set-1737073830-31" class="tab-selector-2" /> + <label for="tab-1737073830-32" class="tab-label-2">groovy</label> <div class="tabcontent"> <div class="tabcontent-1"> <div class="listingblock"> @@ -2536,10 +2536,10 @@ here involves the use of a <code>union() reconstructed as a new <code>Map</code> that has been merged together:</p> </div> <section class="tabs tabs-2"> - <input id="tab-1733358295-33" type="radio" name="radio-set-1733358295-33" class="tab-selector-1" checked="checked" /> - <label for="tab-1733358295-33" class="tab-label-1">console (groovy)</label> - <input id="tab-1733358295-34" type="radio" name="radio-set-1733358295-33" class="tab-selector-2" /> - <label for="tab-1733358295-34" class="tab-label-2">groovy</label> + <input id="tab-1737073830-33" type="radio" name="radio-set-1737073830-33" class="tab-selector-1" checked="checked" /> + <label for="tab-1737073830-33" class="tab-label-1">console (groovy)</label> + <input id="tab-1737073830-34" type="radio" name="radio-set-1737073830-33" class="tab-selector-2" /> + <label for="tab-1737073830-34" class="tab-label-2">groovy</label> <div class="tabcontent"> <div class="tabcontent-1"> <div class="listingblock"> @@ -2553,7 +2553,7 @@ reconstructed as a new <code>Map</code> group(). by(keys). by(select(values).unfold()) -==>[<span class="key">label</span>:person,<span class="key">degree</span>:<span class="integer">3</span>,<span class="key">id</span>:<span class="integer">1</span>,<span class="key">name</span>:marko,<span class="key">age</span>:<span class="integer">29</span>]</code></pre> +==>[<span class="key">label</span>:person,<span class="key">id</span>:<span class="integer">1</span>,<span class="key">degree</span>:<span class="integer">3</span>,<span class="key">name</span>:marko,<span class="key">age</span>:<span class="integer">29</span>]</code></pre> </div> </div> </div> @@ -2599,10 +2599,10 @@ a <code>List</code> back for all the val <code>List</code> instances when necessary:</p> </div> <section class="tabs tabs-2"> - <input id="tab-1733358295-35" type="radio" name="radio-set-1733358295-35" class="tab-selector-1" checked="checked" /> - <label for="tab-1733358295-35" class="tab-label-1">console (groovy)</label> - <input id="tab-1733358295-36" type="radio" name="radio-set-1733358295-35" class="tab-selector-2" /> - <label for="tab-1733358295-36" class="tab-label-2">groovy</label> + <input id="tab-1737073830-35" type="radio" name="radio-set-1737073830-35" class="tab-selector-1" checked="checked" /> + <label for="tab-1737073830-35" class="tab-label-1">console (groovy)</label> + <input id="tab-1737073830-36" type="radio" name="radio-set-1737073830-35" class="tab-selector-2" /> + <label for="tab-1737073830-36" class="tab-label-2">groovy</label> <div class="tabcontent"> <div class="tabcontent-1"> <div class="listingblock"> @@ -2681,10 +2681,10 @@ component membership is stored in the gr <p><span class="image"><img src="../images/connected-components.png" alt="connected components" width="600"></span></p> </div> <section class="tabs tabs-2"> - <input id="tab-1733358322-1" type="radio" name="radio-set-1733358322-1" class="tab-selector-1" checked="checked" /> - <label for="tab-1733358322-1" class="tab-label-1">console (groovy)</label> - <input id="tab-1733358322-2" type="radio" name="radio-set-1733358322-1" class="tab-selector-2" /> - <label for="tab-1733358322-2" class="tab-label-2">groovy</label> + <input id="tab-1737073845-1" type="radio" name="radio-set-1737073845-1" class="tab-selector-1" checked="checked" /> + <label for="tab-1737073845-1" class="tab-label-1">console (groovy)</label> + <input id="tab-1737073845-2" type="radio" name="radio-set-1737073845-1" class="tab-selector-2" /> + <label for="tab-1737073845-2" class="tab-label-2">groovy</label> <div class="tabcontent"> <div class="tabcontent-1"> <div class="listingblock"> @@ -2730,10 +2730,10 @@ described in more detail in the The traversal looks like:</p> </div> <section class="tabs tabs-2"> - <input id="tab-1733358322-3" type="radio" name="radio-set-1733358322-3" class="tab-selector-1" checked="checked" /> - <label for="tab-1733358322-3" class="tab-label-1">console (groovy)</label> - <input id="tab-1733358322-4" type="radio" name="radio-set-1733358322-3" class="tab-selector-2" /> - <label for="tab-1733358322-4" class="tab-label-2">groovy</label> + <input id="tab-1737073845-3" type="radio" name="radio-set-1737073845-3" class="tab-selector-1" checked="checked" /> + <label for="tab-1737073845-3" class="tab-label-1">console (groovy)</label> + <input id="tab-1737073845-4" type="radio" name="radio-set-1737073845-3" class="tab-selector-2" /> + <label for="tab-1737073845-4" class="tab-label-2">groovy</label> <div class="tabcontent"> <div class="tabcontent-1"> <div class="listingblock"> @@ -2741,8 +2741,8 @@ The traversal looks like:</p> <pre class="CodeRay highlight"><code data-lang="groovy">gremlin> g.withComputer().V().connectedComponent(). group().by(ConnectedComponent.component). select(values).unfold() -==>[v[D],v[E]] -==>[v[B],v[C],v[A]] +==>[v[E],v[D]] +==>[v[A],v[B],v[C]] ==>[v[F]]</code></pre> </div> </div> @@ -2777,10 +2777,10 @@ default property key within which the re <p>A straightforward way to detect the various subgraphs with an OLTP traversal is to do this:</p> </div> <section class="tabs tabs-2"> - <input id="tab-1733358322-5" type="radio" name="radio-set-1733358322-5" class="tab-selector-1" checked="checked" /> - <label for="tab-1733358322-5" class="tab-label-1">console (groovy)</label> - <input id="tab-1733358322-6" type="radio" name="radio-set-1733358322-5" class="tab-selector-2" /> - <label for="tab-1733358322-6" class="tab-label-2">groovy</label> + <input id="tab-1737073845-5" type="radio" name="radio-set-1737073845-5" class="tab-selector-1" checked="checked" /> + <label for="tab-1737073845-5" class="tab-label-1">console (groovy)</label> + <input id="tab-1737073845-6" type="radio" name="radio-set-1737073845-5" class="tab-selector-2" /> + <label for="tab-1737073845-6" class="tab-label-2">groovy</label> <div class="tabcontent"> <div class="tabcontent-1"> <div class="listingblock"> @@ -2918,10 +2918,10 @@ depicted below Gremlin could be use to d <p><span class="image"><img src="../images/graph-cycle.png" alt="graph cycle" width="250"></span></p> </div> <section class="tabs tabs-2"> - <input id="tab-1733358339-1" type="radio" name="radio-set-1733358339-1" class="tab-selector-1" checked="checked" /> - <label for="tab-1733358339-1" class="tab-label-1">console (groovy)</label> - <input id="tab-1733358339-2" type="radio" name="radio-set-1733358339-1" class="tab-selector-2" /> - <label for="tab-1733358339-2" class="tab-label-2">groovy</label> + <input id="tab-1737073855-1" type="radio" name="radio-set-1737073855-1" class="tab-selector-1" checked="checked" /> + <label for="tab-1737073855-1" class="tab-label-1">console (groovy)</label> + <input id="tab-1737073855-2" type="radio" name="radio-set-1737073855-1" class="tab-selector-2" /> + <label for="tab-1737073855-2" class="tab-label-2">groovy</label> <div class="tabcontent"> <div class="tabcontent-1"> <div class="listingblock"> @@ -2995,10 +2995,10 @@ It also respected the directionality of themselves). To do so, you would need to <code>.emit()</code> a Traverser before the repeat()-loop.</p> </div> <section class="tabs tabs-2"> - <input id="tab-1733358339-3" type="radio" name="radio-set-1733358339-3" class="tab-selector-1" checked="checked" /> - <label for="tab-1733358339-3" class="tab-label-1">console (groovy)</label> - <input id="tab-1733358339-4" type="radio" name="radio-set-1733358339-3" class="tab-selector-2" /> - <label for="tab-1733358339-4" class="tab-label-2">groovy</label> + <input id="tab-1737073855-3" type="radio" name="radio-set-1737073855-3" class="tab-selector-1" checked="checked" /> + <label for="tab-1737073855-3" class="tab-label-1">console (groovy)</label> + <input id="tab-1737073855-4" type="radio" name="radio-set-1737073855-3" class="tab-selector-2" /> + <label for="tab-1737073855-4" class="tab-label-2">groovy</label> <div class="tabcontent"> <div class="tabcontent-1"> <div class="listingblock"> @@ -3061,10 +3061,10 @@ g.V().as(<span class="string"><span clas outgoing edges, in the modern graph?</p> </div> <section class="tabs tabs-2"> - <input id="tab-1733358339-5" type="radio" name="radio-set-1733358339-5" class="tab-selector-1" checked="checked" /> - <label for="tab-1733358339-5" class="tab-label-1">console (groovy)</label> - <input id="tab-1733358339-6" type="radio" name="radio-set-1733358339-5" class="tab-selector-2" /> - <label for="tab-1733358339-6" class="tab-label-2">groovy</label> + <input id="tab-1737073855-5" type="radio" name="radio-set-1737073855-5" class="tab-selector-1" checked="checked" /> + <label for="tab-1737073855-5" class="tab-label-1">console (groovy)</label> + <input id="tab-1737073855-6" type="radio" name="radio-set-1737073855-5" class="tab-selector-2" /> + <label for="tab-1737073855-6" class="tab-label-2">groovy</label> <div class="tabcontent"> <div class="tabcontent-1"> <div class="listingblock"> @@ -3102,10 +3102,10 @@ that happens to have an eighth bridge (t <p>Gremlin can detect if such a cycle exists with:</p> </div> <section class="tabs tabs-2"> - <input id="tab-1733358339-7" type="radio" name="radio-set-1733358339-7" class="tab-selector-1" checked="checked" /> - <label for="tab-1733358339-7" class="tab-label-1">console (groovy)</label> - <input id="tab-1733358339-8" type="radio" name="radio-set-1733358339-7" class="tab-selector-2" /> - <label for="tab-1733358339-8" class="tab-label-2">groovy</label> + <input id="tab-1737073855-7" type="radio" name="radio-set-1737073855-7" class="tab-selector-1" checked="checked" /> + <label for="tab-1737073855-7" class="tab-label-1">console (groovy)</label> + <input id="tab-1737073855-8" type="radio" name="radio-set-1737073855-7" class="tab-selector-2" /> + <label for="tab-1737073855-8" class="tab-label-2">groovy</label> <div class="tabcontent"> <div class="tabcontent-1"> <div class="listingblock"> @@ -3187,10 +3187,10 @@ the first step above, which would mean t detected circuit can be displayed with:</p> </div> <section class="tabs tabs-2"> - <input id="tab-1733358339-9" type="radio" name="radio-set-1733358339-9" class="tab-selector-1" checked="checked" /> - <label for="tab-1733358339-9" class="tab-label-1">console (groovy)</label> - <input id="tab-1733358339-10" type="radio" name="radio-set-1733358339-9" class="tab-selector-2" /> - <label for="tab-1733358339-10" class="tab-label-2">groovy</label> + <input id="tab-1737073855-9" type="radio" name="radio-set-1737073855-9" class="tab-selector-1" checked="checked" /> + <label for="tab-1737073855-9" class="tab-label-1">console (groovy)</label> + <input id="tab-1737073855-10" type="radio" name="radio-set-1737073855-9" class="tab-selector-2" /> + <label for="tab-1737073855-10" class="tab-label-2">groovy</label> <div class="tabcontent"> <div class="tabcontent-1"> <div class="listingblock"> @@ -3240,10 +3240,10 @@ label and direction will be considered " that is duplicative of the "created" edge between vertex "1" and "3".</p> </div> <section class="tabs tabs-2"> - <input id="tab-1733358357-1" type="radio" name="radio-set-1733358357-1" class="tab-selector-1" checked="checked" /> - <label for="tab-1733358357-1" class="tab-label-1">console (groovy)</label> - <input id="tab-1733358357-2" type="radio" name="radio-set-1733358357-1" class="tab-selector-2" /> - <label for="tab-1733358357-2" class="tab-label-2">groovy</label> + <input id="tab-1737073865-1" type="radio" name="radio-set-1737073865-1" class="tab-selector-1" checked="checked" /> + <label for="tab-1737073865-1" class="tab-label-1">console (groovy)</label> + <input id="tab-1737073865-2" type="radio" name="radio-set-1737073865-1" class="tab-selector-2" /> + <label for="tab-1737073865-2" class="tab-label-2">groovy</label> <div class="tabcontent"> <div class="tabcontent-1"> <div class="listingblock"> @@ -3271,10 +3271,10 @@ g.V(<span class="integer">1</span>).outE <p>One way to find the duplicate edges would be to do something like this:</p> </div> <section class="tabs tabs-2"> - <input id="tab-1733358357-3" type="radio" name="radio-set-1733358357-3" class="tab-selector-1" checked="checked" /> - <label for="tab-1733358357-3" class="tab-label-1">console (groovy)</label> - <input id="tab-1733358357-4" type="radio" name="radio-set-1733358357-3" class="tab-selector-2" /> - <label for="tab-1733358357-4" class="tab-label-2">groovy</label> + <input id="tab-1737073865-3" type="radio" name="radio-set-1737073865-3" class="tab-selector-1" checked="checked" /> + <label for="tab-1737073865-3" class="tab-label-1">console (groovy)</label> + <input id="tab-1737073865-4" type="radio" name="radio-set-1737073865-3" class="tab-selector-2" /> + <label for="tab-1737073865-4" class="tab-label-2">groovy</label> <div class="tabcontent"> <div class="tabcontent-1"> <div class="listingblock"> @@ -3337,10 +3337,10 @@ contain duplicate.</p> that uses less memory might look like this:</p> </div> <section class="tabs tabs-2"> - <input id="tab-1733358357-5" type="radio" name="radio-set-1733358357-5" class="tab-selector-1" checked="checked" /> - <label for="tab-1733358357-5" class="tab-label-1">console (groovy)</label> - <input id="tab-1733358357-6" type="radio" name="radio-set-1733358357-5" class="tab-selector-2" /> - <label for="tab-1733358357-6" class="tab-label-2">groovy</label> + <input id="tab-1737073865-5" type="radio" name="radio-set-1737073865-5" class="tab-selector-1" checked="checked" /> + <label for="tab-1737073865-5" class="tab-label-1">console (groovy)</label> + <input id="tab-1737073865-6" type="radio" name="radio-set-1737073865-5" class="tab-selector-2" /> + <label for="tab-1737073865-6" class="tab-label-2">groovy</label> <div class="tabcontent"> <div class="tabcontent-1"> <div class="listingblock"> @@ -3409,10 +3409,10 @@ value.</p> <p>Note that the above traversal could also be written using <code>match</code> step:</p> </div> <section class="tabs tabs-2"> - <input id="tab-1733358357-7" type="radio" name="radio-set-1733358357-7" class="tab-selector-1" checked="checked" /> - <label for="tab-1733358357-7" class="tab-label-1">console (groovy)</label> - <input id="tab-1733358357-8" type="radio" name="radio-set-1733358357-7" class="tab-selector-2" /> - <label for="tab-1733358357-8" class="tab-label-2">groovy</label> + <input id="tab-1737073865-7" type="radio" name="radio-set-1737073865-7" class="tab-selector-1" checked="checked" /> + <label for="tab-1737073865-7" class="tab-label-1">console (groovy)</label> + <input id="tab-1737073865-8" type="radio" name="radio-set-1737073865-7" class="tab-selector-2" /> + <label for="tab-1737073865-8" class="tab-label-2">groovy</label> <div class="tabcontent"> <div class="tabcontent-1"> <div class="listingblock"> @@ -3461,10 +3461,10 @@ The previous examples invoke traversal s as a performance optimization.</p> </div> <section class="tabs tabs-2"> - <input id="tab-1733358357-9" type="radio" name="radio-set-1733358357-9" class="tab-selector-1" checked="checked" /> - <label for="tab-1733358357-9" class="tab-label-1">console (groovy)</label> - <input id="tab-1733358357-10" type="radio" name="radio-set-1733358357-9" class="tab-selector-2" /> - <label for="tab-1733358357-10" class="tab-label-2">groovy</label> + <input id="tab-1737073865-9" type="radio" name="radio-set-1737073865-9" class="tab-selector-1" checked="checked" /> + <label for="tab-1737073865-9" class="tab-label-1">console (groovy)</label> + <input id="tab-1737073865-10" type="radio" name="radio-set-1737073865-9" class="tab-selector-2" /> + <label for="tab-1737073865-10" class="tab-label-2">groovy</label> <div class="tabcontent"> <div class="tabcontent-1"> <div class="listingblock"> @@ -3520,10 +3520,10 @@ example, a "duplicate" definition could demonstration, an additional edge is added to the "modern" graph:</p> </div> <section class="tabs tabs-2"> - <input id="tab-1733358357-11" type="radio" name="radio-set-1733358357-11" class="tab-selector-1" checked="checked" /> - <label for="tab-1733358357-11" class="tab-label-1">console (groovy)</label> - <input id="tab-1733358357-12" type="radio" name="radio-set-1733358357-11" class="tab-selector-2" /> - <label for="tab-1733358357-12" class="tab-label-2">groovy</label> + <input id="tab-1737073865-11" type="radio" name="radio-set-1737073865-11" class="tab-selector-1" checked="checked" /> + <label for="tab-1737073865-11" class="tab-label-1">console (groovy)</label> + <input id="tab-1737073865-12" type="radio" name="radio-set-1737073865-11" class="tab-selector-2" /> + <label for="tab-1737073865-12" class="tab-label-2">groovy</label> <div class="tabcontent"> <div class="tabcontent-1"> <div class="listingblock"> @@ -3554,10 +3554,10 @@ g.V(<span class="integer">1</span>).outE <p>To identify the duplicate with this revised definition, the previous traversal can be modified to:</p> </div> <section class="tabs tabs-2"> - <input id="tab-1733358357-13" type="radio" name="radio-set-1733358357-13" class="tab-selector-1" checked="checked" /> - <label for="tab-1733358357-13" class="tab-label-1">console (groovy)</label> - <input id="tab-1733358357-14" type="radio" name="radio-set-1733358357-13" class="tab-selector-2" /> - <label for="tab-1733358357-14" class="tab-label-2">groovy</label> + <input id="tab-1737073865-13" type="radio" name="radio-set-1737073865-13" class="tab-selector-1" checked="checked" /> + <label for="tab-1737073865-13" class="tab-label-1">console (groovy)</label> + <input id="tab-1737073865-14" type="radio" name="radio-set-1737073865-13" class="tab-selector-2" /> + <label for="tab-1737073865-14" class="tab-label-2">groovy</label> <div class="tabcontent"> <div class="tabcontent-1"> <div class="listingblock"> @@ -3607,10 +3607,10 @@ group for duplicates.</p> <p>Consider the following example with some duplicate vertices added to the "modern" graph:</p> </div> <section class="tabs tabs-2"> - <input id="tab-1733358376-1" type="radio" name="radio-set-1733358376-1" class="tab-selector-1" checked="checked" /> - <label for="tab-1733358376-1" class="tab-label-1">console (groovy)</label> - <input id="tab-1733358376-2" type="radio" name="radio-set-1733358376-1" class="tab-selector-2" /> - <label for="tab-1733358376-2" class="tab-label-2">groovy</label> + <input id="tab-1737073876-1" type="radio" name="radio-set-1737073876-1" class="tab-selector-1" checked="checked" /> + <label for="tab-1737073876-1" class="tab-label-1">console (groovy)</label> + <input id="tab-1737073876-2" type="radio" name="radio-set-1737073876-1" class="tab-selector-2" /> + <label for="tab-1737073876-2" class="tab-label-2">groovy</label> <div class="tabcontent"> <div class="tabcontent-1"> <div class="listingblock"> @@ -3656,10 +3656,10 @@ the <code>Map</code> provided by the <co match the feature. To extract just those vertices that contain duplicates an additional filter can be added:</p> </div> <section class="tabs tabs-2"> - <input id="tab-1733358376-3" type="radio" name="radio-set-1733358376-3" class="tab-selector-1" checked="checked" /> - <label for="tab-1733358376-3" class="tab-label-1">console (groovy)</label> - <input id="tab-1733358376-4" type="radio" name="radio-set-1733358376-3" class="tab-selector-2" /> - <label for="tab-1733358376-4" class="tab-label-2">groovy</label> + <input id="tab-1737073876-3" type="radio" name="radio-set-1737073876-3" class="tab-selector-1" checked="checked" /> + <label for="tab-1737073876-3" class="tab-label-1">console (groovy)</label> + <input id="tab-1737073876-4" type="radio" name="radio-set-1737073876-3" class="tab-selector-2" /> + <label for="tab-1737073876-4" class="tab-label-2">groovy</label> <div class="tabcontent"> <div class="tabcontent-1"> <div class="listingblock"> @@ -3708,10 +3708,10 @@ be created with the same properties and follows:</p> </div> <section class="tabs tabs-2"> - <input id="tab-1733358391-1" type="radio" name="radio-set-1733358391-1" class="tab-selector-1" checked="checked" /> - <label for="tab-1733358391-1" class="tab-label-1">console (groovy)</label> - <input id="tab-1733358391-2" type="radio" name="radio-set-1733358391-1" class="tab-selector-2" /> - <label for="tab-1733358391-2" class="tab-label-2">groovy</label> + <input id="tab-1737073885-1" type="radio" name="radio-set-1737073885-1" class="tab-selector-1" checked="checked" /> + <label for="tab-1737073885-1" class="tab-label-1">console (groovy)</label> + <input id="tab-1737073885-2" type="radio" name="radio-set-1737073885-1" class="tab-selector-2" /> + <label for="tab-1737073885-2" class="tab-label-2">groovy</label> <div class="tabcontent"> <div class="tabcontent-1"> <div class="listingblock"> @@ -3743,10 +3743,10 @@ follows:</p> the "peter" vertex in a single traversal:</p> </div> <section class="tabs tabs-2"> - <input id="tab-1733358391-3" type="radio" name="radio-set-1733358391-3" class="tab-selector-1" checked="checked" /> - <label for="tab-1733358391-3" class="tab-label-1">console (groovy)</label> - <input id="tab-1733358391-4" type="radio" name="radio-set-1733358391-3" class="tab-selector-2" /> - <label for="tab-1733358391-4" class="tab-label-2">groovy</label> + <input id="tab-1737073885-3" type="radio" name="radio-set-1737073885-3" class="tab-selector-1" checked="checked" /> + <label for="tab-1737073885-3" class="tab-label-1">console (groovy)</label> + <input id="tab-1737073885-4" type="radio" name="radio-set-1737073885-3" class="tab-selector-2" /> + <label for="tab-1737073885-4" class="tab-label-2">groovy</label> <div class="tabcontent"> <div class="tabcontent-1"> <div class="listingblock"> @@ -3817,10 +3817,10 @@ properties to transfer to the new "moved <p>Checking for whether or not a graph element is present in the graph is simple:</p> </div> <section class="tabs tabs-2"> - <input id="tab-1733358407-1" type="radio" name="radio-set-1733358407-1" class="tab-selector-1" checked="checked" /> - <label for="tab-1733358407-1" class="tab-label-1">console (groovy)</label> - <input id="tab-1733358407-2" type="radio" name="radio-set-1733358407-1" class="tab-selector-2" /> - <label for="tab-1733358407-2" class="tab-label-2">groovy</label> + <input id="tab-1737073894-1" type="radio" name="radio-set-1737073894-1" class="tab-selector-1" checked="checked" /> + <label for="tab-1737073894-1" class="tab-label-1">console (groovy)</label> + <input id="tab-1737073894-2" type="radio" name="radio-set-1737073894-1" class="tab-selector-2" /> + <label for="tab-1737073894-2" class="tab-label-2">groovy</label> <div class="tabcontent"> <div class="tabcontent-1"> <div class="listingblock"> @@ -3851,10 +3851,10 @@ determine whether or not to add a new ve entire operation can occur in a single traversal.</p> </div> <section class="tabs tabs-2"> - <input id="tab-1733358407-3" type="radio" name="radio-set-1733358407-3" class="tab-selector-1" checked="checked" /> - <label for="tab-1733358407-3" class="tab-label-1">console (groovy)</label> - <input id="tab-1733358407-4" type="radio" name="radio-set-1733358407-3" class="tab-selector-2" /> - <label for="tab-1733358407-4" class="tab-label-2">groovy</label> + <input id="tab-1737073894-3" type="radio" name="radio-set-1737073894-3" class="tab-selector-1" checked="checked" /> + <label for="tab-1737073894-3" class="tab-label-1">console (groovy)</label> + <input id="tab-1737073894-4" type="radio" name="radio-set-1737073894-3" class="tab-selector-2" /> + <label for="tab-1737073894-4" class="tab-label-2">groovy</label> <div class="tabcontent"> <div class="tabcontent-1"> <div class="listingblock"> @@ -3909,10 +3909,10 @@ then the vertex does not exist and it is <p>This "get or create" logic can be expanded to be "upsert" like functionality as follows:</p> </div> <section class="tabs tabs-2"> - <input id="tab-1733358407-5" type="radio" name="radio-set-1733358407-5" class="tab-selector-1" checked="checked" /> - <label for="tab-1733358407-5" class="tab-label-1">console (groovy)</label> - <input id="tab-1733358407-6" type="radio" name="radio-set-1733358407-5" class="tab-selector-2" /> - <label for="tab-1733358407-6" class="tab-label-2">groovy</label> + <input id="tab-1737073894-5" type="radio" name="radio-set-1737073894-5" class="tab-selector-1" checked="checked" /> + <label for="tab-1737073894-5" class="tab-label-1">console (groovy)</label> + <input id="tab-1737073894-6" type="radio" name="radio-set-1737073894-5" class="tab-selector-2" /> + <label for="tab-1737073894-6" class="tab-label-2">groovy</label> <div class="tabcontent"> <div class="tabcontent-1"> <div class="listingblock"> @@ -3974,10 +3974,10 @@ execution. <p>It is possible to do similar sorts of operations with edges using the same pattern:</p> </div> <section class="tabs tabs-2"> - <input id="tab-1733358407-7" type="radio" name="radio-set-1733358407-7" class="tab-selector-1" checked="checked" /> - <label for="tab-1733358407-7" class="tab-label-1">console (groovy)</label> - <input id="tab-1733358407-8" type="radio" name="radio-set-1733358407-7" class="tab-selector-2" /> - <label for="tab-1733358407-8" class="tab-label-2">groovy</label> + <input id="tab-1737073894-7" type="radio" name="radio-set-1737073894-7" class="tab-selector-1" checked="checked" /> + <label for="tab-1737073894-7" class="tab-label-1">console (groovy)</label> + <input id="tab-1737073894-8" type="radio" name="radio-set-1737073894-7" class="tab-selector-2" /> + <label for="tab-1737073894-8" class="tab-label-2">groovy</label> <div class="tabcontent"> <div class="tabcontent-1"> <div class="listingblock"> @@ -4018,10 +4018,10 @@ found between these two vertices, then i <p>Consider the following traversal over the "modern" toy graph:</p> </div> <section class="tabs tabs-2"> - <input id="tab-1733358424-1" type="radio" name="radio-set-1733358424-1" class="tab-selector-1" checked="checked" /> - <label for="tab-1733358424-1" class="tab-label-1">console (groovy)</label> - <input id="tab-1733358424-2" type="radio" name="radio-set-1733358424-1" class="tab-selector-2" /> - <label for="tab-1733358424-2" class="tab-label-2">groovy</label> + <input id="tab-1737073904-1" type="radio" name="radio-set-1737073904-1" class="tab-selector-1" checked="checked" /> + <label for="tab-1737073904-1" class="tab-label-1">console (groovy)</label> + <input id="tab-1737073904-2" type="radio" name="radio-set-1737073904-1" class="tab-selector-2" /> + <label for="tab-1737073904-2" class="tab-label-2">groovy</label> <div class="tabcontent"> <div class="tabcontent-1"> <div class="listingblock"> @@ -4049,10 +4049,10 @@ different picture of the result. For exa a domain concept such as "young", "old" and "very old".</p> </div> <section class="tabs tabs-2"> - <input id="tab-1733358424-3" type="radio" name="radio-set-1733358424-3" class="tab-selector-1" checked="checked" /> - <label for="tab-1733358424-3" class="tab-label-1">console (groovy)</label> - <input id="tab-1733358424-4" type="radio" name="radio-set-1733358424-3" class="tab-selector-2" /> - <label for="tab-1733358424-4" class="tab-label-2">groovy</label> + <input id="tab-1737073904-3" type="radio" name="radio-set-1737073904-3" class="tab-selector-1" checked="checked" /> + <label for="tab-1737073904-3" class="tab-label-1">console (groovy)</label> + <input id="tab-1737073904-4" type="radio" name="radio-set-1737073904-3" class="tab-selector-2" /> + <label for="tab-1737073904-4" class="tab-label-2">groovy</label> <div class="tabcontent"> <div class="tabcontent-1"> <div class="listingblock"> @@ -4104,10 +4104,10 @@ like the following in Java:</p> there is another option to consider with <code>coalesce</code>:</p> </div> <section class="tabs tabs-2"> - <input id="tab-1733358424-5" type="radio" name="radio-set-1733358424-5" class="tab-selector-1" checked="checked" /> - <label for="tab-1733358424-5" class="tab-label-1">console (groovy)</label> - <input id="tab-1733358424-6" type="radio" name="radio-set-1733358424-5" class="tab-selector-2" /> - <label for="tab-1733358424-6" class="tab-label-2">groovy</label> + <input id="tab-1737073904-5" type="radio" name="radio-set-1737073904-5" class="tab-selector-1" checked="checked" /> + <label for="tab-1737073904-5" class="tab-label-1">console (groovy)</label> + <input id="tab-1737073904-6" type="radio" name="radio-set-1737073904-5" class="tab-selector-2" /> + <label for="tab-1737073904-6" class="tab-label-2">groovy</label> <div class="tabcontent"> <div class="tabcontent-1"> <div class="listingblock"> @@ -4151,10 +4151,10 @@ there is another option to consider with <p><span class="image right"><img src="../images/tree-lca.png" alt="tree lca" width="230"></span> The following examples will use this graph depicted here:</p> </div> <section class="tabs tabs-2"> - <input id="tab-1733358441-1" type="radio" name="radio-set-1733358441-1" class="tab-selector-1" checked="checked" /> - <label for="tab-1733358441-1" class="tab-label-1">console (groovy)</label> - <input id="tab-1733358441-2" type="radio" name="radio-set-1733358441-1" class="tab-selector-2" /> - <label for="tab-1733358441-2" class="tab-label-2">groovy</label> + <input id="tab-1737073914-1" type="radio" name="radio-set-1737073914-1" class="tab-selector-1" checked="checked" /> + <label for="tab-1737073914-1" class="tab-label-1">console (groovy)</label> + <input id="tab-1737073914-2" type="radio" name="radio-set-1737073914-1" class="tab-selector-2" /> + <label for="tab-1737073914-2" class="tab-label-2">groovy</label> <div class="tabcontent"> <div class="tabcontent-1"> <div class="listingblock"> @@ -4208,10 +4208,10 @@ start at vertex A and loop through all o completed 3 loops.</p> </div> <section class="tabs tabs-2"> - <input id="tab-1733358441-3" type="radio" name="radio-set-1733358441-3" class="tab-selector-1" checked="checked" /> - <label for="tab-1733358441-3" class="tab-label-1">console (groovy)</label> - <input id="tab-1733358441-4" type="radio" name="radio-set-1733358441-3" class="tab-selector-2" /> - <label for="tab-1733358441-4" class="tab-label-2">groovy</label> + <input id="tab-1737073914-3" type="radio" name="radio-set-1737073914-3" class="tab-selector-1" checked="checked" /> + <label for="tab-1737073914-3" class="tab-label-1">console (groovy)</label> + <input id="tab-1737073914-4" type="radio" name="radio-set-1737073914-3" class="tab-selector-2" /> + <label for="tab-1737073914-4" class="tab-label-2">groovy</label> <div class="tabcontent"> <div class="tabcontent-1"> <div class="listingblock"> @@ -4244,10 +4244,10 @@ to be vertex G, we will see that this tr exit based on reaching the maximum number of loops (3).</p> </div> <section class="tabs tabs-2"> - <input id="tab-1733358441-5" type="radio" name="radio-set-1733358441-5" class="tab-selector-1" checked="checked" /> - <label for="tab-1733358441-5" class="tab-label-1">console (groovy)</label> - <input id="tab-1733358441-6" type="radio" name="radio-set-1733358441-5" class="tab-selector-2" /> - <label for="tab-1733358441-6" class="tab-label-2">groovy</label> + <input id="tab-1737073914-5" type="radio" name="radio-set-1737073914-5" class="tab-selector-1" checked="checked" /> + <label for="tab-1737073914-5" class="tab-label-1">console (groovy)</label> + <input id="tab-1737073914-6" type="radio" name="radio-set-1737073914-5" class="tab-selector-2" /> + <label for="tab-1737073914-6" class="tab-label-2">groovy</label> <div class="tabcontent"> <div class="tabcontent-1"> <div class="listingblock"> @@ -4290,10 +4290,10 @@ several different recipes for accomplish <p>If the desired output is to get each vertex and its associated depth this can be accomplished using this traversal.</p> </div> <section class="tabs tabs-2"> - <input id="tab-1733358441-7" type="radio" name="radio-set-1733358441-7" class="tab-selector-1" checked="checked" /> - <label for="tab-1733358441-7" class="tab-label-1">console (groovy)</label> - <input id="tab-1733358441-8" type="radio" name="radio-set-1733358441-7" class="tab-selector-2" /> - <label for="tab-1733358441-8" class="tab-label-2">groovy</label> + <input id="tab-1737073914-7" type="radio" name="radio-set-1737073914-7" class="tab-selector-1" checked="checked" /> + <label for="tab-1737073914-7" class="tab-label-1">console (groovy)</label> + <input id="tab-1737073914-8" type="radio" name="radio-set-1737073914-7" class="tab-selector-2" /> + <label for="tab-1737073914-8" class="tab-label-2">groovy</label> <div class="tabcontent"> <div class="tabcontent-1"> <div class="listingblock"> @@ -4336,10 +4336,10 @@ several different recipes for accomplish this can be accomplished with this traversal.</p> </div> <section class="tabs tabs-2"> - <input id="tab-1733358441-9" type="radio" name="radio-set-1733358441-9" class="tab-selector-1" checked="checked" /> - <label for="tab-1733358441-9" class="tab-label-1">console (groovy)</label> - <input id="tab-1733358441-10" type="radio" name="radio-set-1733358441-9" class="tab-selector-2" /> - <label for="tab-1733358441-10" class="tab-label-2">groovy</label> + <input id="tab-1737073914-9" type="radio" name="radio-set-1737073914-9" class="tab-selector-1" checked="checked" /> + <label for="tab-1737073914-9" class="tab-label-1">console (groovy)</label> + <input id="tab-1737073914-10" type="radio" name="radio-set-1737073914-9" class="tab-selector-2" /> + <label for="tab-1737073914-10" class="tab-label-2">groovy</label> <div class="tabcontent"> <div class="tabcontent-1"> <div class="listingblock"> @@ -4385,10 +4385,10 @@ be accomplished.</p> in the <code>until()</code> checking for a vertex with a degree of zero.</p> </div> <section class="tabs tabs-2"> - <input id="tab-1733358441-11" type="radio" name="radio-set-1733358441-11" class="tab-selector-1" checked="checked" /> - <label for="tab-1733358441-11" class="tab-label-1">console (groovy)</label> - <input id="tab-1733358441-12" type="radio" name="radio-set-1733358441-11" class="tab-selector-2" /> - <label for="tab-1733358441-12" class="tab-label-2">groovy</label> + <input id="tab-1737073914-11" type="radio" name="radio-set-1737073914-11" class="tab-selector-1" checked="checked" /> + <label for="tab-1737073914-11" class="tab-label-1">console (groovy)</label> + <input id="tab-1737073914-12" type="radio" name="radio-set-1737073914-11" class="tab-selector-2" /> + <label for="tab-1737073914-12" class="tab-label-2">groovy</label> <div class="tabcontent"> <div class="tabcontent-1"> <div class="listingblock"> @@ -4419,10 +4419,10 @@ within a <code>repeat().times()</code> l up to a maximum of 5 times.</p> </div> <section class="tabs tabs-2"> - <input id="tab-1733358441-13" type="radio" name="radio-set-1733358441-13" class="tab-selector-1" checked="checked" /> - <label for="tab-1733358441-13" class="tab-label-1">console (groovy)</label> - <input id="tab-1733358441-14" type="radio" name="radio-set-1733358441-13" class="tab-selector-2" /> - <label for="tab-1733358441-14" class="tab-label-2">groovy</label> + <input id="tab-1737073914-13" type="radio" name="radio-set-1737073914-13" class="tab-selector-1" checked="checked" /> + <label for="tab-1737073914-13" class="tab-label-1">console (groovy)</label> + <input id="tab-1737073914-14" type="radio" name="radio-set-1737073914-13" class="tab-selector-2" /> + <label for="tab-1737073914-14" class="tab-label-2">groovy</label> <div class="tabcontent"> <div class="tabcontent-1"> <div class="listingblock"> @@ -4449,10 +4449,10 @@ For example, we can first use a more tra edges two times, and then traverse <code>out()</code> edges up to five times.</p> </div> <section class="tabs tabs-2"> - <input id="tab-1733358441-15" type="radio" name="radio-set-1733358441-15" class="tab-selector-1" checked="checked" /> - <label for="tab-1733358441-15" class="tab-label-1">console (groovy)</label> - <input id="tab-1733358441-16" type="radio" name="radio-set-1733358441-15" class="tab-selector-2" /> - <label for="tab-1733358441-16" class="tab-label-2">groovy</label> + <input id="tab-1737073914-15" type="radio" name="radio-set-1737073914-15" class="tab-selector-1" checked="checked" /> + <label for="tab-1737073914-15" class="tab-label-1">console (groovy)</label> + <input id="tab-1737073914-16" type="radio" name="radio-set-1737073914-15" class="tab-selector-2" /> + <label for="tab-1737073914-16" class="tab-label-2">groovy</label> <div class="tabcontent"> <div class="tabcontent-1"> <div class="listingblock"> @@ -4487,10 +4487,10 @@ the number of elements being dropped fro "modern" graph.</p> </div> <section class="tabs tabs-2"> - <input id="tab-1733358459-1" type="radio" name="radio-set-1733358459-1" class="tab-selector-1" checked="checked" /> - <label for="tab-1733358459-1" class="tab-label-1">console (groovy)</label> - <input id="tab-1733358459-2" type="radio" name="radio-set-1733358459-1" class="tab-selector-2" /> - <label for="tab-1733358459-2" class="tab-label-2">groovy</label> + <input id="tab-1737073924-1" type="radio" name="radio-set-1737073924-1" class="tab-selector-1" checked="checked" /> + <label for="tab-1737073924-1" class="tab-label-1">console (groovy)</label> + <input id="tab-1737073924-2" type="radio" name="radio-set-1737073924-1" class="tab-selector-2" /> + <label for="tab-1737073924-2" class="tab-label-2">groovy</label> <div class="tabcontent"> <div class="tabcontent-1"> <div class="listingblock"> @@ -4550,10 +4550,10 @@ second ten records and so on, until pote <p>In Gremlin, a basic approach to paging would look something like the following:</p> </div> <section class="tabs tabs-2"> - <input id="tab-1733358474-1" type="radio" name="radio-set-1733358474-1" class="tab-selector-1" checked="checked" /> - <label for="tab-1733358474-1" class="tab-label-1">console (groovy)</label> - <input id="tab-1733358474-2" type="radio" name="radio-set-1733358474-1" class="tab-selector-2" /> - <label for="tab-1733358474-2" class="tab-label-2">groovy</label> + <input id="tab-1737073933-1" type="radio" name="radio-set-1737073933-1" class="tab-selector-1" checked="checked" /> + <label for="tab-1737073933-1" class="tab-label-1">console (groovy)</label> + <input id="tab-1737073933-2" type="radio" name="radio-set-1737073933-1" class="tab-selector-2" /> + <label for="tab-1737073933-2" class="tab-label-2">groovy</label> <div class="tabcontent"> <div class="tabcontent-1"> <div class="listingblock"> @@ -4619,10 +4619,10 @@ to getting a total count without doing a removed then the traversals become more simple:</p> </div> <section class="tabs tabs-2"> - <input id="tab-1733358474-3" type="radio" name="radio-set-1733358474-3" class="tab-selector-1" checked="checked" /> - <label for="tab-1733358474-3" class="tab-label-1">console (groovy)</label> - <input id="tab-1733358474-4" type="radio" name="radio-set-1733358474-3" class="tab-selector-2" /> - <label for="tab-1733358474-4" class="tab-label-2">groovy</label> + <input id="tab-1737073933-3" type="radio" name="radio-set-1737073933-3" class="tab-selector-1" checked="checked" /> + <label for="tab-1737073933-3" class="tab-label-1">console (groovy)</label> + <input id="tab-1737073933-4" type="radio" name="radio-set-1737073933-3" class="tab-selector-2" /> + <label for="tab-1737073933-4" class="tab-label-2">groovy</label> <div class="tabcontent"> <div class="tabcontent-1"> <div class="listingblock"> @@ -4672,10 +4672,10 @@ second traversal, the graph will still r <p>The only way to completely avoid that problem is to re-use the same traversal instance:</p> </div> <section class="tabs tabs-2"> - <input id="tab-1733358474-5" type="radio" name="radio-set-1733358474-5" class="tab-selector-1" checked="checked" /> - <label for="tab-1733358474-5" class="tab-label-1">console (groovy)</label> - <input id="tab-1733358474-6" type="radio" name="radio-set-1733358474-5" class="tab-selector-2" /> - <label for="tab-1733358474-6" class="tab-label-2">groovy</label> + <input id="tab-1737073933-5" type="radio" name="radio-set-1737073933-5" class="tab-selector-1" checked="checked" /> + <label for="tab-1737073933-5" class="tab-label-1">console (groovy)</label> + <input id="tab-1737073933-6" type="radio" name="radio-set-1737073933-5" class="tab-selector-2" /> + <label for="tab-1737073933-6" class="tab-label-2">groovy</label> <div class="tabcontent"> <div class="tabcontent-1"> <div class="listingblock"> @@ -4739,10 +4739,10 @@ specific person as to what their opinion following script generates some data for the graph using that basic schema:</p> </div> <section class="tabs tabs-2"> - <input id="tab-1733358490-1" type="radio" name="radio-set-1733358490-1" class="tab-selector-1" checked="checked" /> - <label for="tab-1733358490-1" class="tab-label-1">console (groovy)</label> - <input id="tab-1733358490-2" type="radio" name="radio-set-1733358490-1" class="tab-selector-2" /> - <label for="tab-1733358490-2" class="tab-label-2">groovy</label> + <input id="tab-1737073942-1" type="radio" name="radio-set-1737073942-1" class="tab-selector-1" checked="checked" /> + <label for="tab-1737073942-1" class="tab-label-1">console (groovy)</label> + <input id="tab-1737073942-2" type="radio" name="radio-set-1737073942-1" class="tab-selector-2" /> + <label for="tab-1737073942-2" class="tab-label-2">groovy</label> <div class="tabcontent"> <div class="tabcontent-1"> <div class="listingblock"> @@ -4820,10 +4820,10 @@ gremlin> <span class="integer">2</spa <p>The first step to making a recommendation to "alice" using collaborative filtering is to understand what she bought:</p> </div> <section class="tabs tabs-2"> - <input id="tab-1733358490-3" type="radio" name="radio-set-1733358490-3" class="tab-selector-1" checked="checked" /> - <label for="tab-1733358490-3" class="tab-label-1">console (groovy)</label> - <input id="tab-1733358490-4" type="radio" name="radio-set-1733358490-3" class="tab-selector-2" /> - <label for="tab-1733358490-4" class="tab-label-2">groovy</label> + <input id="tab-1737073942-3" type="radio" name="radio-set-1737073942-3" class="tab-selector-1" checked="checked" /> + <label for="tab-1737073942-3" class="tab-label-1">console (groovy)</label> + <input id="tab-1737073942-4" type="radio" name="radio-set-1737073942-3" class="tab-selector-2" /> + <label for="tab-1737073942-4" class="tab-label-2">groovy</label> <div class="tabcontent"> <div class="tabcontent-1"> <div class="listingblock"> @@ -4860,10 +4860,10 @@ focus on the neighborhood around that pr <p>The next step is to determine who else purchased those products:</p> </div> <section class="tabs tabs-2"> - <input id="tab-1733358490-5" type="radio" name="radio-set-1733358490-5" class="tab-selector-1" checked="checked" /> - <label for="tab-1733358490-5" class="tab-label-1">console (groovy)</label> - <input id="tab-1733358490-6" type="radio" name="radio-set-1733358490-5" class="tab-selector-2" /> - <label for="tab-1733358490-6" class="tab-label-2">groovy</label> + <input id="tab-1737073942-5" type="radio" name="radio-set-1737073942-5" class="tab-selector-1" checked="checked" /> + <label for="tab-1737073942-5" class="tab-label-1">console (groovy)</label> + <input id="tab-1737073942-6" type="radio" name="radio-set-1737073942-5" class="tab-selector-2" /> + <label for="tab-1737073942-6" class="tab-label-2">groovy</label> <div class="tabcontent"> <div class="tabcontent-1"> <div class="listingblock"> @@ -4893,10 +4893,10 @@ focus on the neighborhood around that pr interest is in what individuals other than herself purchased:</p> </div> <section class="tabs tabs-2"> - <input id="tab-1733358490-7" type="radio" name="radio-set-1733358490-7" class="tab-selector-1" checked="checked" /> - <label for="tab-1733358490-7" class="tab-label-1">console (groovy)</label> - <input id="tab-1733358490-8" type="radio" name="radio-set-1733358490-7" class="tab-selector-2" /> - <label for="tab-1733358490-8" class="tab-label-2">groovy</label> + <input id="tab-1737073942-7" type="radio" name="radio-set-1737073942-7" class="tab-selector-1" checked="checked" /> + <label for="tab-1737073942-7" class="tab-label-1">console (groovy)</label> + <input id="tab-1737073942-8" type="radio" name="radio-set-1737073942-7" class="tab-selector-2" /> + <label for="tab-1737073942-8" class="tab-label-2">groovy</label> <div class="tabcontent"> <div class="tabcontent-1"> <div class="listingblock"> @@ -4937,10 +4937,10 @@ interest is in what individuals other th they bought:</p> </div> <section class="tabs tabs-2"> - <input id="tab-1733358490-9" type="radio" name="radio-set-1733358490-9" class="tab-selector-1" checked="checked" /> - <label for="tab-1733358490-9" class="tab-label-1">console (groovy)</label> - <input id="tab-1733358490-10" type="radio" name="radio-set-1733358490-9" class="tab-selector-2" /> - <label for="tab-1733358490-10" class="tab-label-2">groovy</label> + <input id="tab-1737073942-9" type="radio" name="radio-set-1737073942-9" class="tab-selector-1" checked="checked" /> + <label for="tab-1737073942-9" class="tab-label-1">console (groovy)</label> + <input id="tab-1737073942-10" type="radio" name="radio-set-1737073942-9" class="tab-selector-2" /> + <label for="tab-1737073942-10" class="tab-label-2">groovy</label> <div class="tabcontent"> <div class="tabcontent-1"> <div class="listingblock"> @@ -4987,10 +4987,10 @@ already purchased some of these products that she already owns. Those products she already purchased can be excluded as follows:</p> </div> <section class="tabs tabs-2"> - <input id="tab-1733358490-11" type="radio" name="radio-set-1733358490-11" class="tab-selector-1" checked="checked" /> - <label for="tab-1733358490-11" class="tab-label-1">console (groovy)</label> - <input id="tab-1733358490-12" type="radio" name="radio-set-1733358490-11" class="tab-selector-2" /> - <label for="tab-1733358490-12" class="tab-label-2">groovy</label> + <input id="tab-1737073942-11" type="radio" name="radio-set-1737073942-11" class="tab-selector-1" checked="checked" /> + <label for="tab-1737073942-11" class="tab-label-1">console (groovy)</label> + <input id="tab-1737073942-12" type="radio" name="radio-set-1737073942-11" class="tab-selector-2" /> + <label for="tab-1737073942-12" class="tab-label-2">groovy</label> <div class="tabcontent"> <div class="tabcontent-1"> <div class="listingblock"> @@ -5031,10 +5031,10 @@ that she already owns. Those products sh purposes) to form a ranking:</p> </div> <section class="tabs tabs-2"> - <input id="tab-1733358490-13" type="radio" name="radio-set-1733358490-13" class="tab-selector-1" checked="checked" /> - <label for="tab-1733358490-13" class="tab-label-1">console (groovy)</label> - <input id="tab-1733358490-14" type="radio" name="radio-set-1733358490-13" class="tab-selector-2" /> - <label for="tab-1733358490-14" class="tab-label-2">groovy</label> + <input id="tab-1737073942-13" type="radio" name="radio-set-1737073942-13" class="tab-selector-1" checked="checked" /> + <label for="tab-1737073942-13" class="tab-label-1">console (groovy)</label> + <input id="tab-1737073942-14" type="radio" name="radio-set-1737073942-13" class="tab-selector-2" /> + <label for="tab-1737073942-14" class="tab-label-2">groovy</label> <div class="tabcontent"> <div class="tabcontent-1"> <div class="listingblock"> @@ -5097,10 +5097,10 @@ vertices that make up the recommendation who have at least one product in common:</p> </div> <section class="tabs tabs-2"> - <input id="tab-1733358490-15" type="radio" name="radio-set-1733358490-15" class="tab-selector-1" checked="checked" /> - <label for="tab-1733358490-15" class="tab-label-1">console (groovy)</label> - <input id="tab-1733358490-16" type="radio" name="radio-set-1733358490-15" class="tab-selector-2" /> - <label for="tab-1733358490-16" class="tab-label-2">groovy</label> + <input id="tab-1737073942-15" type="radio" name="radio-set-1737073942-15" class="tab-selector-1" checked="checked" /> + <label for="tab-1737073942-15" class="tab-label-1">console (groovy)</label> + <input id="tab-1737073942-16" type="radio" name="radio-set-1737073942-15" class="tab-selector-2" /> + <label for="tab-1737073942-16" class="tab-label-2">groovy</label> <div class="tabcontent"> <div class="tabcontent-1"> <div class="listingblock"> @@ -5132,10 +5132,10 @@ who have at least one product in common: <p>Next, do some grouping to find count how many products they have in common:</p> </div> <section class="tabs tabs-2"> - <input id="tab-1733358490-17" type="radio" name="radio-set-1733358490-17" class="tab-selector-1" checked="checked" /> - <label for="tab-1733358490-17" class="tab-label-1">console (groovy)</label> - <input id="tab-1733358490-18" type="radio" name="radio-set-1733358490-17" class="tab-selector-2" /> - <label for="tab-1733358490-18" class="tab-label-2">groovy</label> + <input id="tab-1737073942-17" type="radio" name="radio-set-1737073942-17" class="tab-selector-1" checked="checked" /> + <label for="tab-1737073942-17" class="tab-label-1">console (groovy)</label> + <input id="tab-1737073942-18" type="radio" name="radio-set-1737073942-17" class="tab-selector-2" /> + <label for="tab-1737073942-18" class="tab-label-2">groovy</label> <div class="tabcontent"> <div class="tabcontent-1"> <div class="listingblock"> @@ -5171,10 +5171,10 @@ who have at least one product in common: that maximum:</p> </div> <section class="tabs tabs-2"> - <input id="tab-1733358490-19" type="radio" name="radio-set-1733358490-19" class="tab-selector-1" checked="checked" /> - <label for="tab-1733358490-19" class="tab-label-1">console (groovy)</label> - <input id="tab-1733358490-20" type="radio" name="radio-set-1733358490-19" class="tab-selector-2" /> - <label for="tab-1733358490-20" class="tab-label-2">groovy</label> + <input id="tab-1737073942-19" type="radio" name="radio-set-1737073942-19" class="tab-selector-1" checked="checked" /> + <label for="tab-1737073942-19" class="tab-label-1">console (groovy)</label> + <input id="tab-1737073942-20" type="radio" name="radio-set-1737073942-19" class="tab-selector-2" /> + <label for="tab-1737073942-20" class="tab-label-2">groovy</label> <div class="tabcontent"> <div class="tabcontent-1"> <div class="listingblock"> @@ -5216,10 +5216,10 @@ that maximum:</p> common:</p> </div> <section class="tabs tabs-2"> - <input id="tab-1733358490-21" type="radio" name="radio-set-1733358490-21" class="tab-selector-1" checked="checked" /> - <label for="tab-1733358490-21" class="tab-label-1">console (groovy)</label> - <input id="tab-1733358490-22" type="radio" name="radio-set-1733358490-21" class="tab-selector-2" /> - <label for="tab-1733358490-22" class="tab-label-2">groovy</label> + <input id="tab-1737073942-21" type="radio" name="radio-set-1737073942-21" class="tab-selector-1" checked="checked" /> + <label for="tab-1737073942-21" class="tab-label-1">console (groovy)</label> + <input id="tab-1737073942-22" type="radio" name="radio-set-1737073942-21" class="tab-selector-2" /> + <label for="tab-1737073942-22" class="tab-label-2">groovy</label> <div class="tabcontent"> <div class="tabcontent-1"> <div class="listingblock"> @@ -5266,10 +5266,10 @@ common:</p> purchased:</p> </div> <section class="tabs tabs-2"> - <input id="tab-1733358490-23" type="radio" name="radio-set-1733358490-23" class="tab-selector-1" checked="checked" /> - <label for="tab-1733358490-23" class="tab-label-1">console (groovy)</label> - <input id="tab-1733358490-24" type="radio" name="radio-set-1733358490-23" class="tab-selector-2" /> - <label for="tab-1733358490-24" class="tab-label-2">groovy</label> + <input id="tab-1737073942-23" type="radio" name="radio-set-1737073942-23" class="tab-selector-1" checked="checked" /> + <label for="tab-1737073942-23" class="tab-label-1">console (groovy)</label> + <input id="tab-1737073942-24" type="radio" name="radio-set-1737073942-23" class="tab-selector-2" /> + <label for="tab-1737073942-24" class="tab-label-2">groovy</label> <div class="tabcontent"> <div class="tabcontent-1"> <div class="listingblock"> @@ -5319,10 +5319,10 @@ purchased:</p> <p>The above output shows that one product is held in common making it the top recommendation:</p> </div> <section class="tabs tabs-2"> - <input id="tab-1733358490-25" type="radio" name="radio-set-1733358490-25" class="tab-selector-1" checked="checked" /> - <label for="tab-1733358490-25" class="tab-label-1">console (groovy)</label> - <input id="tab-1733358490-26" type="radio" name="radio-set-1733358490-25" class="tab-selector-2" /> - <label for="tab-1733358490-26" class="tab-label-2">groovy</label> + <input id="tab-1737073942-25" type="radio" name="radio-set-1737073942-25" class="tab-selector-1" checked="checked" /> + <label for="tab-1737073942-25" class="tab-label-1">console (groovy)</label> + <input id="tab-1737073942-26" type="radio" name="radio-set-1737073942-25" class="tab-selector-2" /> + <label for="tab-1737073942-26" class="tab-label-2">groovy</label> <div class="tabcontent"> <div class="tabcontent-1"> <div class="listingblock"> @@ -5382,10 +5382,10 @@ purchased:</p> recommendation algorithm:</p> </div> <section class="tabs tabs-2"> - <input id="tab-1733358490-27" type="radio" name="radio-set-1733358490-27" class="tab-selector-1" checked="checked" /> - <label for="tab-1733358490-27" class="tab-label-1">console (groovy)</label> - <input id="tab-1733358490-28" type="radio" name="radio-set-1733358490-27" class="tab-selector-2" /> - <label for="tab-1733358490-28" class="tab-label-2">groovy</label> + <input id="tab-1737073942-27" type="radio" name="radio-set-1737073942-27" class="tab-selector-1" checked="checked" /> + <label for="tab-1737073942-27" class="tab-label-1">console (groovy)</label> + <input id="tab-1737073942-28" type="radio" name="radio-set-1737073942-27" class="tab-selector-2" /> + <label for="tab-1737073942-28" class="tab-label-2">groovy</label> <div class="tabcontent"> <div class="tabcontent-1"> <div class="listingblock"> @@ -5432,10 +5432,10 @@ place additional limits on the traversal traversal sample the data for no longer than one second, the previous "basic" recommendation could be changed to:</p> </div> <section class="tabs tabs-2"> - <input id="tab-1733358490-29" type="radio" name="radio-set-1733358490-29" class="tab-selector-1" checked="checked" /> - <label for="tab-1733358490-29" class="tab-label-1">console (groovy)</label> - <input id="tab-1733358490-30" type="radio" name="radio-set-1733358490-29" class="tab-selector-2" /> - <label for="tab-1733358490-30" class="tab-label-2">groovy</label> + <input id="tab-1737073942-29" type="radio" name="radio-set-1737073942-29" class="tab-selector-1" checked="checked" /> + <label for="tab-1737073942-29" class="tab-label-1">console (groovy)</label> + <input id="tab-1737073942-30" type="radio" name="radio-set-1737073942-29" class="tab-selector-2" /> + <label for="tab-1737073942-30" class="tab-label-2">groovy</label> <div class="tabcontent"> <div class="tabcontent-1"> <div class="listingblock"> @@ -5489,10 +5489,10 @@ achieve the desired outcome.</p> is a simple example that identifies the shortest path between vertex "1" and vertex "5" while traversing over out edges:</p> </div> <section class="tabs tabs-2"> - <input id="tab-1733358512-1" type="radio" name="radio-set-1733358512-1" class="tab-selector-1" checked="checked" /> - <label for="tab-1733358512-1" class="tab-label-1">console (groovy)</label> - <input id="tab-1733358512-2" type="radio" name="radio-set-1733358512-1" class="tab-selector-2" /> - <label for="tab-1733358512-2" class="tab-label-2">groovy</label> + <input id="tab-1737073954-1" type="radio" name="radio-set-1737073954-1" class="tab-selector-1" checked="checked" /> + <label for="tab-1737073954-1" class="tab-label-1">console (groovy)</label> + <input id="tab-1737073954-2" type="radio" name="radio-set-1737073954-1" class="tab-selector-2" /> + <label for="tab-1737073954-2" class="tab-label-2">groovy</label> <div class="tabcontent"> <div class="tabcontent-1"> <div class="listingblock"> @@ -5564,10 +5564,10 @@ length three), but this example is not c <p>The following code block demonstrates how the shortest path from <code>v[1]</code> to <code>v[5]</code> can be queried in OLAP, using the <code>shortestPath()</code> step.</p> </div> <section class="tabs tabs-2"> - <input id="tab-1733358512-3" type="radio" name="radio-set-1733358512-3" class="tab-selector-1" checked="checked" /> - <label for="tab-1733358512-3" class="tab-label-1">console (groovy)</label> - <input id="tab-1733358512-4" type="radio" name="radio-set-1733358512-3" class="tab-selector-2" /> - <label for="tab-1733358512-4" class="tab-label-2">groovy</label> + <input id="tab-1737073954-3" type="radio" name="radio-set-1737073954-3" class="tab-selector-1" checked="checked" /> + <label for="tab-1737073954-3" class="tab-label-1">console (groovy)</label> + <input id="tab-1737073954-4" type="radio" name="radio-set-1737073954-3" class="tab-selector-2" /> + <label for="tab-1737073954-4" class="tab-label-2">groovy</label> <div class="tabcontent"> <div class="tabcontent-1"> <div class="listingblock"> @@ -5601,10 +5601,10 @@ be measured by data within the graph its but includes a "weight" on the edges, that will be used to help determine the "cost" of a particular path:</p> </div> <section class="tabs tabs-2"> - <input id="tab-1733358512-5" type="radio" name="radio-set-1733358512-5" class="tab-selector-1" checked="checked" /> - <label for="tab-1733358512-5" class="tab-label-1">console (groovy)</label> - <input id="tab-1733358512-6" type="radio" name="radio-set-1733358512-5" class="tab-selector-2" /> - <label for="tab-1733358512-6" class="tab-label-2">groovy</label> + <input id="tab-1737073954-5" type="radio" name="radio-set-1737073954-5" class="tab-selector-1" checked="checked" /> + <label for="tab-1737073954-5" class="tab-label-1">console (groovy)</label> + <input id="tab-1737073954-6" type="radio" name="radio-set-1737073954-5" class="tab-selector-2" /> + <label for="tab-1737073954-6" class="tab-label-2">groovy</label> <div class="tabcontent"> <div class="tabcontent-1"> <div class="listingblock"> @@ -5706,10 +5706,10 @@ structure.</p> <p>The next code block demonstrates how the <code>shortestPath()</code> step can be used in OLAP to determine the shortest weighted path.</p> </div> <section class="tabs tabs-2"> - <input id="tab-1733358512-7" type="radio" name="radio-set-1733358512-7" class="tab-selector-1" checked="checked" /> - <label for="tab-1733358512-7" class="tab-label-1">console (groovy)</label> - <input id="tab-1733358512-8" type="radio" name="radio-set-1733358512-7" class="tab-selector-2" /> - <label for="tab-1733358512-8" class="tab-label-2">groovy</label> + <input id="tab-1737073954-7" type="radio" name="radio-set-1737073954-7" class="tab-selector-1" checked="checked" /> + <label for="tab-1737073954-7" class="tab-label-1">console (groovy)</label> + <input id="tab-1737073954-8" type="radio" name="radio-set-1737073954-7" class="tab-selector-2" /> + <label for="tab-1737073954-8" class="tab-label-2">groovy</label> <div class="tabcontent"> <div class="tabcontent-1"> <div class="listingblock"> @@ -5744,10 +5744,10 @@ g.V(<span class="integer">1</span>).shor in the modern toy graph.</p> </div> <section class="tabs tabs-2"> - <input id="tab-1733358512-9" type="radio" name="radio-set-1733358512-9" class="tab-selector-1" checked="checked" /> - <label for="tab-1733358512-9" class="tab-label-1">console (groovy)</label> - <input id="tab-1733358512-10" type="radio" name="radio-set-1733358512-9" class="tab-selector-2" /> - <label for="tab-1733358512-10" class="tab-label-2">groovy</label> + <input id="tab-1737073954-9" type="radio" name="radio-set-1737073954-9" class="tab-selector-1" checked="checked" /> + <label for="tab-1737073954-9" class="tab-label-1">console (groovy)</label> + <input id="tab-1737073954-10" type="radio" name="radio-set-1737073954-9" class="tab-selector-2" /> + <label for="tab-1737073954-10" class="tab-label-2">groovy</label> <div class="tabcontent"> <div class="tabcontent-1"> <div class="listingblock"> @@ -5862,10 +5862,10 @@ in the modern toy graph.</p> <p>Again, this can be translated into an OLAP query using the <code>shortestPath()</code> step.</p> </div> <section class="tabs tabs-2"> - <input id="tab-1733358512-11" type="radio" name="radio-set-1733358512-11" class="tab-selector-1" checked="checked" /> - <label for="tab-1733358512-11" class="tab-label-1">console (groovy)</label> - <input id="tab-1733358512-12" type="radio" name="radio-set-1733358512-11" class="tab-selector-2" /> - <label for="tab-1733358512-12" class="tab-label-2">groovy</label> + <input id="tab-1737073954-11" type="radio" name="radio-set-1737073954-11" class="tab-selector-1" checked="checked" /> + <label for="tab-1737073954-11" class="tab-label-1">console (groovy)</label> + <input id="tab-1737073954-12" type="radio" name="radio-set-1737073954-11" class="tab-selector-2" /> + <label for="tab-1737073954-12" class="tab-label-2">groovy</label> <div class="tabcontent"> <div class="tabcontent-1"> <div class="listingblock"> @@ -5945,10 +5945,10 @@ allowed to leave the local star graph, i shortest paths can be passed back into the OLTP <code>GraphTraversalSource</code>, which can then be used to query the values.</p> </div> <section class="tabs tabs-2"> - <input id="tab-1733358512-13" type="radio" name="radio-set-1733358512-13" class="tab-selector-1" checked="checked" /> - <label for="tab-1733358512-13" class="tab-label-1">console (groovy)</label> - <input id="tab-1733358512-14" type="radio" name="radio-set-1733358512-13" class="tab-selector-2" /> - <label for="tab-1733358512-14" class="tab-label-2">groovy</label> + <input id="tab-1737073954-13" type="radio" name="radio-set-1737073954-13" class="tab-selector-1" checked="checked" /> + <label for="tab-1737073954-13" class="tab-label-1">console (groovy)</label> + <input id="tab-1737073954-14" type="radio" name="radio-set-1737073954-13" class="tab-selector-2" /> + <label for="tab-1737073954-14" class="tab-label-2">groovy</label> <div class="tabcontent"> <div class="tabcontent-1"> <div class="listingblock"> @@ -6039,10 +6039,10 @@ shortest paths can be passed back into t arguments.</p> </div> <section class="tabs tabs-2"> - <input id="tab-1733358533-1" type="radio" name="radio-set-1733358533-1" class="tab-selector-1" checked="checked" /> - <label for="tab-1733358533-1" class="tab-label-1">console (groovy)</label> - <input id="tab-1733358533-2" type="radio" name="radio-set-1733358533-1" class="tab-selector-2" /> - <label for="tab-1733358533-2" class="tab-label-2">groovy</label> + <input id="tab-1737073966-1" type="radio" name="radio-set-1737073966-1" class="tab-selector-1" checked="checked" /> + <label for="tab-1737073966-1" class="tab-label-1">console (groovy)</label> + <input id="tab-1737073966-2" type="radio" name="radio-set-1737073966-1" class="tab-selector-2" /> + <label for="tab-1737073966-2" class="tab-label-2">groovy</label> <div class="tabcontent"> <div class="tabcontent-1"> <div class="listingblock"> @@ -6071,10 +6071,10 @@ no longer suffice. There are multiple wa obvious to any programmer - use a variable:</p> </div> <section class="tabs tabs-2"> - <input id="tab-1733358533-3" type="radio" name="radio-set-1733358533-3" class="tab-selector-1" checked="checked" /> - <label for="tab-1733358533-3" class="tab-label-1">console (groovy)</label>
[... 976 lines stripped ...]
