You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by fl...@apache.org on 2021/07/27 11:10:46 UTC
svn commit: r1891827 [2/8] - in /tinkerpop/site:
docs/3.5.2-SNAPSHOT/dev/provider/ docs/3.5.2-SNAPSHOT/recipes/
docs/3.5.2-SNAPSHOT/reference/ docs/3.5.2-SNAPSHOT/tutorials/getting-started/
docs/3.5.2-SNAPSHOT/tutorials/gremlins-anatomy/ docs/3.5.2-SNA...
Modified: tinkerpop/site/docs/3.5.2-SNAPSHOT/recipes/index.html
URL: http://svn.apache.org/viewvc/tinkerpop/site/docs/3.5.2-SNAPSHOT/recipes/index.html?rev=1891827&r1=1891826&r2=1891827&view=diff
==============================================================================
--- tinkerpop/site/docs/3.5.2-SNAPSHOT/recipes/index.html (original)
+++ tinkerpop/site/docs/3.5.2-SNAPSHOT/recipes/index.html Tue Jul 27 11:10:45 2021
@@ -922,10 +922,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-1627369198-1" type="radio" name="radio-set-1627369198-1" class="tab-selector-1" checked="checked" />
- <label for="tab-1627369198-1" class="tab-label-1">console (groovy)</label>
- <input id="tab-1627369198-2" type="radio" name="radio-set-1627369198-1" class="tab-selector-2" />
- <label for="tab-1627369198-2" class="tab-label-2">groovy</label>
+ <input id="tab-1627380235-1" type="radio" name="radio-set-1627380235-1" class="tab-selector-1" checked="checked" />
+ <label for="tab-1627380235-1" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1627380235-2" type="radio" name="radio-set-1627380235-1" class="tab-selector-2" />
+ <label for="tab-1627380235-2" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -1000,10 +1000,10 @@ scenarios. For one such example, conside
vertices:</p>
</div>
<section class="tabs tabs-2">
- <input id="tab-1627369198-3" type="radio" name="radio-set-1627369198-3" class="tab-selector-1" checked="checked" />
- <label for="tab-1627369198-3" class="tab-label-1">console (groovy)</label>
- <input id="tab-1627369198-4" type="radio" name="radio-set-1627369198-3" class="tab-selector-2" />
- <label for="tab-1627369198-4" class="tab-label-2">groovy</label>
+ <input id="tab-1627380235-3" type="radio" name="radio-set-1627380235-3" class="tab-selector-1" checked="checked" />
+ <label for="tab-1627380235-3" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1627380235-4" type="radio" name="radio-set-1627380235-3" class="tab-selector-2" />
+ <label for="tab-1627380235-4" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -1052,10 +1052,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-1627369198-5" type="radio" name="radio-set-1627369198-5" class="tab-selector-1" checked="checked" />
- <label for="tab-1627369198-5" class="tab-label-1">console (groovy)</label>
- <input id="tab-1627369198-6" type="radio" name="radio-set-1627369198-5" class="tab-selector-2" />
- <label for="tab-1627369198-6" class="tab-label-2">groovy</label>
+ <input id="tab-1627380235-5" type="radio" name="radio-set-1627380235-5" class="tab-selector-1" checked="checked" />
+ <label for="tab-1627380235-5" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1627380235-6" type="radio" name="radio-set-1627380235-5" class="tab-selector-2" />
+ <label for="tab-1627380235-6" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -1191,10 +1191,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-1627369222-1" type="radio" name="radio-set-1627369222-1" class="tab-selector-1" checked="checked" />
- <label for="tab-1627369222-1" class="tab-label-1">console (groovy)</label>
- <input id="tab-1627369222-2" type="radio" name="radio-set-1627369222-1" class="tab-selector-2" />
- <label for="tab-1627369222-2" class="tab-label-2">groovy</label>
+ <input id="tab-1627380257-1" type="radio" name="radio-set-1627380257-1" class="tab-selector-1" checked="checked" />
+ <label for="tab-1627380257-1" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1627380257-2" type="radio" name="radio-set-1627380257-1" class="tab-selector-2" />
+ <label for="tab-1627380257-2" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -1289,10 +1289,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-1627369222-3" type="radio" name="radio-set-1627369222-3" class="tab-selector-1" checked="checked" />
- <label for="tab-1627369222-3" class="tab-label-1">console (groovy )</label>
- <input id="tab-1627369222-4" type="radio" name="radio-set-1627369222-3" class="tab-selector-2" />
- <label for="tab-1627369222-4" class="tab-label-2">groovy </label>
+ <input id="tab-1627380257-3" type="radio" name="radio-set-1627380257-3" class="tab-selector-1" checked="checked" />
+ <label for="tab-1627380257-3" class="tab-label-1">console (groovy )</label>
+ <input id="tab-1627380257-4" type="radio" name="radio-set-1627380257-3" class="tab-selector-2" />
+ <label for="tab-1627380257-4" class="tab-label-2">groovy </label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -1420,10 +1420,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-1627369222-5" type="radio" name="radio-set-1627369222-5" class="tab-selector-1" checked="checked" />
- <label for="tab-1627369222-5" class="tab-label-1">console (groovy)</label>
- <input id="tab-1627369222-6" type="radio" name="radio-set-1627369222-5" class="tab-selector-2" />
- <label for="tab-1627369222-6" class="tab-label-2">groovy</label>
+ <input id="tab-1627380257-5" type="radio" name="radio-set-1627380257-5" class="tab-selector-1" checked="checked" />
+ <label for="tab-1627380257-5" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1627380257-6" type="radio" name="radio-set-1627380257-5" class="tab-selector-2" />
+ <label for="tab-1627380257-6" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -1526,10 +1526,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-1627369222-7" type="radio" name="radio-set-1627369222-7" class="tab-selector-1" checked="checked" />
- <label for="tab-1627369222-7" class="tab-label-1">console (groovy)</label>
- <input id="tab-1627369222-8" type="radio" name="radio-set-1627369222-7" class="tab-selector-2" />
- <label for="tab-1627369222-8" class="tab-label-2">groovy</label>
+ <input id="tab-1627380257-7" type="radio" name="radio-set-1627380257-7" class="tab-selector-1" checked="checked" />
+ <label for="tab-1627380257-7" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1627380257-8" type="radio" name="radio-set-1627380257-7" class="tab-selector-2" />
+ <label for="tab-1627380257-8" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -1608,10 +1608,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-1627369222-9" type="radio" name="radio-set-1627369222-9" class="tab-selector-1" checked="checked" />
- <label for="tab-1627369222-9" class="tab-label-1">console (groovy)</label>
- <input id="tab-1627369222-10" type="radio" name="radio-set-1627369222-9" class="tab-selector-2" />
- <label for="tab-1627369222-10" class="tab-label-2">groovy</label>
+ <input id="tab-1627380257-9" type="radio" name="radio-set-1627380257-9" class="tab-selector-1" checked="checked" />
+ <label for="tab-1627380257-9" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1627380257-10" type="radio" name="radio-set-1627380257-9" class="tab-selector-2" />
+ <label for="tab-1627380257-10" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -1619,12 +1619,12 @@ can shorten the time required to get a r
<pre class="CodeRay highlight"><code data-lang="groovy">gremlin> g = traversal().withEmbedded(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.1757988989970823</span>
-==><span class="float">0.11375510357865537</span>
-==><span class="float">0.11375510357865537</span>
-==><span class="float">0.14598540152719103</span>
-==><span class="float">0.14598540152719103</span></code></pre>
+==><span class="float">0.11375510357865541</span>
+==><span class="float">0.11375510357865541</span>
+==><span class="float">0.17579889899708231</span>
+==><span class="float">0.3047200907912249</span>
+==><span class="float">0.14598540152719106</span>
+==><span class="float">0.14598540152719106</span></code></pre>
</div>
</div>
</div>
@@ -1669,10 +1669,10 @@ patterns described in this section.</p>
appear by way of some side-effect steps like <code>store()</code>:</p>
</div>
<section class="tabs tabs-2">
- <input id="tab-1627369257-1" type="radio" name="radio-set-1627369257-1" class="tab-selector-1" checked="checked" />
- <label for="tab-1627369257-1" class="tab-label-1">console (groovy)</label>
- <input id="tab-1627369257-2" type="radio" name="radio-set-1627369257-1" class="tab-selector-2" />
- <label for="tab-1627369257-2" class="tab-label-2">groovy</label>
+ <input id="tab-1627380289-1" type="radio" name="radio-set-1627380289-1" class="tab-selector-1" checked="checked" />
+ <label for="tab-1627380289-1" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1627380289-2" type="radio" name="radio-set-1627380289-1" class="tab-selector-2" />
+ <label for="tab-1627380289-2" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -1701,10 +1701,10 @@ g.V().store(<span class="string"><span c
similar fashion to lists:</p>
</div>
<section class="tabs tabs-2">
- <input id="tab-1627369257-3" type="radio" name="radio-set-1627369257-3" class="tab-selector-1" checked="checked" />
- <label for="tab-1627369257-3" class="tab-label-1">console (groovy)</label>
- <input id="tab-1627369257-4" type="radio" name="radio-set-1627369257-3" class="tab-selector-2" />
- <label for="tab-1627369257-4" class="tab-label-2">groovy</label>
+ <input id="tab-1627380289-3" type="radio" name="radio-set-1627380289-3" class="tab-selector-1" checked="checked" />
+ <label for="tab-1627380289-3" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1627380289-4" type="radio" name="radio-set-1627380289-3" class="tab-selector-2" />
+ <label for="tab-1627380289-4" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -1737,10 +1737,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-1627369257-5" type="radio" name="radio-set-1627369257-5" class="tab-selector-1" checked="checked" />
- <label for="tab-1627369257-5" class="tab-label-1">console (groovy)</label>
- <input id="tab-1627369257-6" type="radio" name="radio-set-1627369257-5" class="tab-selector-2" />
- <label for="tab-1627369257-6" class="tab-label-2">groovy</label>
+ <input id="tab-1627380289-5" type="radio" name="radio-set-1627380289-5" class="tab-selector-1" checked="checked" />
+ <label for="tab-1627380289-5" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1627380289-6" type="radio" name="radio-set-1627380289-5" class="tab-selector-2" />
+ <label for="tab-1627380289-6" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -1780,10 +1780,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-1627369257-7" type="radio" name="radio-set-1627369257-7" class="tab-selector-1" checked="checked" />
- <label for="tab-1627369257-7" class="tab-label-1">console (groovy)</label>
- <input id="tab-1627369257-8" type="radio" name="radio-set-1627369257-7" class="tab-selector-2" />
- <label for="tab-1627369257-8" class="tab-label-2">groovy</label>
+ <input id="tab-1627380289-7" type="radio" name="radio-set-1627380289-7" class="tab-selector-1" checked="checked" />
+ <label for="tab-1627380289-7" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1627380289-8" type="radio" name="radio-set-1627380289-7" class="tab-selector-2" />
+ <label for="tab-1627380289-8" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -1825,10 +1825,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-1627369257-9" type="radio" name="radio-set-1627369257-9" class="tab-selector-1" checked="checked" />
- <label for="tab-1627369257-9" class="tab-label-1">console (groovy)</label>
- <input id="tab-1627369257-10" type="radio" name="radio-set-1627369257-9" class="tab-selector-2" />
- <label for="tab-1627369257-10" class="tab-label-2">groovy</label>
+ <input id="tab-1627380289-9" type="radio" name="radio-set-1627380289-9" class="tab-selector-1" checked="checked" />
+ <label for="tab-1627380289-9" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1627380289-10" type="radio" name="radio-set-1627380289-9" class="tab-selector-2" />
+ <label for="tab-1627380289-10" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -1863,10 +1863,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-1627369257-11" type="radio" name="radio-set-1627369257-11" class="tab-selector-1" checked="checked" />
- <label for="tab-1627369257-11" class="tab-label-1">console (groovy)</label>
- <input id="tab-1627369257-12" type="radio" name="radio-set-1627369257-11" class="tab-selector-2" />
- <label for="tab-1627369257-12" class="tab-label-2">groovy</label>
+ <input id="tab-1627380289-11" type="radio" name="radio-set-1627380289-11" class="tab-selector-1" checked="checked" />
+ <label for="tab-1627380289-11" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1627380289-12" type="radio" name="radio-set-1627380289-11" class="tab-selector-2" />
+ <label for="tab-1627380289-12" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -1944,10 +1944,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-1627369257-13" type="radio" name="radio-set-1627369257-13" class="tab-selector-1" checked="checked" />
- <label for="tab-1627369257-13" class="tab-label-1">console (groovy)</label>
- <input id="tab-1627369257-14" type="radio" name="radio-set-1627369257-13" class="tab-selector-2" />
- <label for="tab-1627369257-14" class="tab-label-2">groovy</label>
+ <input id="tab-1627380289-13" type="radio" name="radio-set-1627380289-13" class="tab-selector-1" checked="checked" />
+ <label for="tab-1627380289-13" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1627380289-14" type="radio" name="radio-set-1627380289-13" class="tab-selector-2" />
+ <label for="tab-1627380289-14" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -2028,10 +2028,10 @@ three results (i.e. triple) that could t
the use of <code>store()</code> to aid in construction of this <code>List</code>:</p>
</div>
<section class="tabs tabs-2">
- <input id="tab-1627369257-15" type="radio" name="radio-set-1627369257-15" class="tab-selector-1" checked="checked" />
- <label for="tab-1627369257-15" class="tab-label-1">console (groovy)</label>
- <input id="tab-1627369257-16" type="radio" name="radio-set-1627369257-15" class="tab-selector-2" />
- <label for="tab-1627369257-16" class="tab-label-2">groovy</label>
+ <input id="tab-1627380289-15" type="radio" name="radio-set-1627380289-15" class="tab-selector-1" checked="checked" />
+ <label for="tab-1627380289-15" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1627380289-16" type="radio" name="radio-set-1627380289-15" class="tab-selector-2" />
+ <label for="tab-1627380289-16" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -2142,10 +2142,10 @@ means that each traverser can effectivel
vertices each:</p>
</div>
<section class="tabs tabs-2">
- <input id="tab-1627369257-17" type="radio" name="radio-set-1627369257-17" class="tab-selector-1" checked="checked" />
- <label for="tab-1627369257-17" class="tab-label-1">console (groovy)</label>
- <input id="tab-1627369257-18" type="radio" name="radio-set-1627369257-17" class="tab-selector-2" />
- <label for="tab-1627369257-18" class="tab-label-2">groovy</label>
+ <input id="tab-1627380289-17" type="radio" name="radio-set-1627380289-17" class="tab-selector-1" checked="checked" />
+ <label for="tab-1627380289-17" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1627380289-18" type="radio" name="radio-set-1627380289-17" class="tab-selector-2" />
+ <label for="tab-1627380289-18" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -2172,10 +2172,10 @@ vertices each:</p>
results.</p>
</div>
<section class="tabs tabs-2">
- <input id="tab-1627369257-19" type="radio" name="radio-set-1627369257-19" class="tab-selector-1" checked="checked" />
- <label for="tab-1627369257-19" class="tab-label-1">console (groovy)</label>
- <input id="tab-1627369257-20" type="radio" name="radio-set-1627369257-19" class="tab-selector-2" />
- <label for="tab-1627369257-20" class="tab-label-2">groovy</label>
+ <input id="tab-1627380289-19" type="radio" name="radio-set-1627380289-19" class="tab-selector-1" checked="checked" />
+ <label for="tab-1627380289-19" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1627380289-20" type="radio" name="radio-set-1627380289-19" class="tab-selector-2" />
+ <label for="tab-1627380289-20" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -2256,10 +2256,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-1627369257-21" type="radio" name="radio-set-1627369257-21" class="tab-selector-1" checked="checked" />
- <label for="tab-1627369257-21" class="tab-label-1">console (groovy)</label>
- <input id="tab-1627369257-22" type="radio" name="radio-set-1627369257-21" class="tab-selector-2" />
- <label for="tab-1627369257-22" class="tab-label-2">groovy</label>
+ <input id="tab-1627380289-21" type="radio" name="radio-set-1627380289-21" class="tab-selector-1" checked="checked" />
+ <label for="tab-1627380289-21" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1627380289-22" type="radio" name="radio-set-1627380289-21" class="tab-selector-2" />
+ <label for="tab-1627380289-22" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -2286,10 +2286,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-1627369257-23" type="radio" name="radio-set-1627369257-23" class="tab-selector-1" checked="checked" />
- <label for="tab-1627369257-23" class="tab-label-1">console (groovy)</label>
- <input id="tab-1627369257-24" type="radio" name="radio-set-1627369257-23" class="tab-selector-2" />
- <label for="tab-1627369257-24" class="tab-label-2">groovy</label>
+ <input id="tab-1627380289-23" type="radio" name="radio-set-1627380289-23" class="tab-selector-1" checked="checked" />
+ <label for="tab-1627380289-23" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1627380289-24" type="radio" name="radio-set-1627380289-23" class="tab-selector-2" />
+ <label for="tab-1627380289-24" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -2319,10 +2319,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-1627369257-25" type="radio" name="radio-set-1627369257-25" class="tab-selector-1" checked="checked" />
- <label for="tab-1627369257-25" class="tab-label-1">console (groovy)</label>
- <input id="tab-1627369257-26" type="radio" name="radio-set-1627369257-25" class="tab-selector-2" />
- <label for="tab-1627369257-26" class="tab-label-2">groovy</label>
+ <input id="tab-1627380289-25" type="radio" name="radio-set-1627380289-25" class="tab-selector-1" checked="checked" />
+ <label for="tab-1627380289-25" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1627380289-26" type="radio" name="radio-set-1627380289-25" class="tab-selector-2" />
+ <label for="tab-1627380289-26" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -2372,10 +2372,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-1627369257-27" type="radio" name="radio-set-1627369257-27" class="tab-selector-1" checked="checked" />
- <label for="tab-1627369257-27" class="tab-label-1">console (groovy)</label>
- <input id="tab-1627369257-28" type="radio" name="radio-set-1627369257-27" class="tab-selector-2" />
- <label for="tab-1627369257-28" class="tab-label-2">groovy</label>
+ <input id="tab-1627380289-27" type="radio" name="radio-set-1627380289-27" class="tab-selector-1" checked="checked" />
+ <label for="tab-1627380289-27" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1627380289-28" type="radio" name="radio-set-1627380289-27" class="tab-selector-2" />
+ <label for="tab-1627380289-28" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -2415,10 +2415,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-1627369257-29" type="radio" name="radio-set-1627369257-29" class="tab-selector-1" checked="checked" />
- <label for="tab-1627369257-29" class="tab-label-1">console (groovy)</label>
- <input id="tab-1627369257-30" type="radio" name="radio-set-1627369257-29" class="tab-selector-2" />
- <label for="tab-1627369257-30" class="tab-label-2">groovy</label>
+ <input id="tab-1627380289-29" type="radio" name="radio-set-1627380289-29" class="tab-selector-1" checked="checked" />
+ <label for="tab-1627380289-29" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1627380289-30" type="radio" name="radio-set-1627380289-29" class="tab-selector-2" />
+ <label for="tab-1627380289-30" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -2468,10 +2468,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-1627369257-31" type="radio" name="radio-set-1627369257-31" class="tab-selector-1" checked="checked" />
- <label for="tab-1627369257-31" class="tab-label-1">console (groovy)</label>
- <input id="tab-1627369257-32" type="radio" name="radio-set-1627369257-31" class="tab-selector-2" />
- <label for="tab-1627369257-32" class="tab-label-2">groovy</label>
+ <input id="tab-1627380289-31" type="radio" name="radio-set-1627380289-31" class="tab-selector-1" checked="checked" />
+ <label for="tab-1627380289-31" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1627380289-32" type="radio" name="radio-set-1627380289-31" class="tab-selector-2" />
+ <label for="tab-1627380289-32" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -2521,10 +2521,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-1627369257-33" type="radio" name="radio-set-1627369257-33" class="tab-selector-1" checked="checked" />
- <label for="tab-1627369257-33" class="tab-label-1">console (groovy)</label>
- <input id="tab-1627369257-34" type="radio" name="radio-set-1627369257-33" class="tab-selector-2" />
- <label for="tab-1627369257-34" class="tab-label-2">groovy</label>
+ <input id="tab-1627380289-33" type="radio" name="radio-set-1627380289-33" class="tab-selector-1" checked="checked" />
+ <label for="tab-1627380289-33" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1627380289-34" type="radio" name="radio-set-1627380289-33" class="tab-selector-2" />
+ <label for="tab-1627380289-34" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -2584,10 +2584,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-1627369257-35" type="radio" name="radio-set-1627369257-35" class="tab-selector-1" checked="checked" />
- <label for="tab-1627369257-35" class="tab-label-1">console (groovy)</label>
- <input id="tab-1627369257-36" type="radio" name="radio-set-1627369257-35" class="tab-selector-2" />
- <label for="tab-1627369257-36" class="tab-label-2">groovy</label>
+ <input id="tab-1627380289-35" type="radio" name="radio-set-1627380289-35" class="tab-selector-1" checked="checked" />
+ <label for="tab-1627380289-35" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1627380289-36" type="radio" name="radio-set-1627380289-35" class="tab-selector-2" />
+ <label for="tab-1627380289-36" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -2666,10 +2666,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-1627369340-1" type="radio" name="radio-set-1627369340-1" class="tab-selector-1" checked="checked" />
- <label for="tab-1627369340-1" class="tab-label-1">console (groovy)</label>
- <input id="tab-1627369340-2" type="radio" name="radio-set-1627369340-1" class="tab-selector-2" />
- <label for="tab-1627369340-2" class="tab-label-2">groovy</label>
+ <input id="tab-1627380366-1" type="radio" name="radio-set-1627380366-1" class="tab-selector-1" checked="checked" />
+ <label for="tab-1627380366-1" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1627380366-2" type="radio" name="radio-set-1627380366-1" class="tab-selector-2" />
+ <label for="tab-1627380366-2" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -2715,10 +2715,10 @@ described in more detail in the
The traversal looks like:</p>
</div>
<section class="tabs tabs-2">
- <input id="tab-1627369340-3" type="radio" name="radio-set-1627369340-3" class="tab-selector-1" checked="checked" />
- <label for="tab-1627369340-3" class="tab-label-1">console (groovy)</label>
- <input id="tab-1627369340-4" type="radio" name="radio-set-1627369340-3" class="tab-selector-2" />
- <label for="tab-1627369340-4" class="tab-label-2">groovy</label>
+ <input id="tab-1627380366-3" type="radio" name="radio-set-1627380366-3" class="tab-selector-1" checked="checked" />
+ <label for="tab-1627380366-3" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1627380366-4" type="radio" name="radio-set-1627380366-3" class="tab-selector-2" />
+ <label for="tab-1627380366-4" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -2727,7 +2727,7 @@ The traversal looks like:</p>
group().by(ConnectedComponent.component).
select(values).unfold()
==>[v[D],v[E]]
-==>[v[A],v[B],v[C]]
+==>[v[A],v[C],v[B]]
==>[v[F]]</code></pre>
</div>
</div>
@@ -2762,10 +2762,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-1627369340-5" type="radio" name="radio-set-1627369340-5" class="tab-selector-1" checked="checked" />
- <label for="tab-1627369340-5" class="tab-label-1">console (groovy)</label>
- <input id="tab-1627369340-6" type="radio" name="radio-set-1627369340-5" class="tab-selector-2" />
- <label for="tab-1627369340-6" class="tab-label-2">groovy</label>
+ <input id="tab-1627380366-5" type="radio" name="radio-set-1627380366-5" class="tab-selector-1" checked="checked" />
+ <label for="tab-1627380366-5" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1627380366-6" type="radio" name="radio-set-1627380366-5" class="tab-selector-2" />
+ <label for="tab-1627380366-6" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -2903,10 +2903,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-1627369364-1" type="radio" name="radio-set-1627369364-1" class="tab-selector-1" checked="checked" />
- <label for="tab-1627369364-1" class="tab-label-1">console (groovy)</label>
- <input id="tab-1627369364-2" type="radio" name="radio-set-1627369364-1" class="tab-selector-2" />
- <label for="tab-1627369364-2" class="tab-label-2">groovy</label>
+ <input id="tab-1627380388-1" type="radio" name="radio-set-1627380388-1" class="tab-selector-1" checked="checked" />
+ <label for="tab-1627380388-1" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1627380388-2" type="radio" name="radio-set-1627380388-1" class="tab-selector-2" />
+ <label for="tab-1627380388-2" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -2980,10 +2980,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-1627369364-3" type="radio" name="radio-set-1627369364-3" class="tab-selector-1" checked="checked" />
- <label for="tab-1627369364-3" class="tab-label-1">console (groovy)</label>
- <input id="tab-1627369364-4" type="radio" name="radio-set-1627369364-3" class="tab-selector-2" />
- <label for="tab-1627369364-4" class="tab-label-2">groovy</label>
+ <input id="tab-1627380388-3" type="radio" name="radio-set-1627380388-3" class="tab-selector-1" checked="checked" />
+ <label for="tab-1627380388-3" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1627380388-4" type="radio" name="radio-set-1627380388-3" class="tab-selector-2" />
+ <label for="tab-1627380388-4" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -3046,10 +3046,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-1627369364-5" type="radio" name="radio-set-1627369364-5" class="tab-selector-1" checked="checked" />
- <label for="tab-1627369364-5" class="tab-label-1">console (groovy)</label>
- <input id="tab-1627369364-6" type="radio" name="radio-set-1627369364-5" class="tab-selector-2" />
- <label for="tab-1627369364-6" class="tab-label-2">groovy</label>
+ <input id="tab-1627380388-5" type="radio" name="radio-set-1627380388-5" class="tab-selector-1" checked="checked" />
+ <label for="tab-1627380388-5" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1627380388-6" type="radio" name="radio-set-1627380388-5" class="tab-selector-2" />
+ <label for="tab-1627380388-6" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -3087,10 +3087,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-1627369364-7" type="radio" name="radio-set-1627369364-7" class="tab-selector-1" checked="checked" />
- <label for="tab-1627369364-7" class="tab-label-1">console (groovy)</label>
- <input id="tab-1627369364-8" type="radio" name="radio-set-1627369364-7" class="tab-selector-2" />
- <label for="tab-1627369364-8" class="tab-label-2">groovy</label>
+ <input id="tab-1627380388-7" type="radio" name="radio-set-1627380388-7" class="tab-selector-1" checked="checked" />
+ <label for="tab-1627380388-7" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1627380388-8" type="radio" name="radio-set-1627380388-7" class="tab-selector-2" />
+ <label for="tab-1627380388-8" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -3172,10 +3172,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-1627369364-9" type="radio" name="radio-set-1627369364-9" class="tab-selector-1" checked="checked" />
- <label for="tab-1627369364-9" class="tab-label-1">console (groovy)</label>
- <input id="tab-1627369364-10" type="radio" name="radio-set-1627369364-9" class="tab-selector-2" />
- <label for="tab-1627369364-10" class="tab-label-2">groovy</label>
+ <input id="tab-1627380388-9" type="radio" name="radio-set-1627380388-9" class="tab-selector-1" checked="checked" />
+ <label for="tab-1627380388-9" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1627380388-10" type="radio" name="radio-set-1627380388-9" class="tab-selector-2" />
+ <label for="tab-1627380388-10" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -3225,10 +3225,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-1627369395-1" type="radio" name="radio-set-1627369395-1" class="tab-selector-1" checked="checked" />
- <label for="tab-1627369395-1" class="tab-label-1">console (groovy)</label>
- <input id="tab-1627369395-2" type="radio" name="radio-set-1627369395-1" class="tab-selector-2" />
- <label for="tab-1627369395-2" class="tab-label-2">groovy</label>
+ <input id="tab-1627380416-1" type="radio" name="radio-set-1627380416-1" class="tab-selector-1" checked="checked" />
+ <label for="tab-1627380416-1" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1627380416-2" type="radio" name="radio-set-1627380416-1" class="tab-selector-2" />
+ <label for="tab-1627380416-2" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -3256,10 +3256,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-1627369395-3" type="radio" name="radio-set-1627369395-3" class="tab-selector-1" checked="checked" />
- <label for="tab-1627369395-3" class="tab-label-1">console (groovy)</label>
- <input id="tab-1627369395-4" type="radio" name="radio-set-1627369395-3" class="tab-selector-2" />
- <label for="tab-1627369395-4" class="tab-label-2">groovy</label>
+ <input id="tab-1627380416-3" type="radio" name="radio-set-1627380416-3" class="tab-selector-1" checked="checked" />
+ <label for="tab-1627380416-3" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1627380416-4" type="radio" name="radio-set-1627380416-3" class="tab-selector-2" />
+ <label for="tab-1627380416-4" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -3322,10 +3322,10 @@ contain duplicate.</p>
that uses less memory might look like this:</p>
</div>
<section class="tabs tabs-2">
- <input id="tab-1627369395-5" type="radio" name="radio-set-1627369395-5" class="tab-selector-1" checked="checked" />
- <label for="tab-1627369395-5" class="tab-label-1">console (groovy)</label>
- <input id="tab-1627369395-6" type="radio" name="radio-set-1627369395-5" class="tab-selector-2" />
- <label for="tab-1627369395-6" class="tab-label-2">groovy</label>
+ <input id="tab-1627380416-5" type="radio" name="radio-set-1627380416-5" class="tab-selector-1" checked="checked" />
+ <label for="tab-1627380416-5" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1627380416-6" type="radio" name="radio-set-1627380416-5" class="tab-selector-2" />
+ <label for="tab-1627380416-6" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -3394,10 +3394,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-1627369395-7" type="radio" name="radio-set-1627369395-7" class="tab-selector-1" checked="checked" />
- <label for="tab-1627369395-7" class="tab-label-1">console (groovy)</label>
- <input id="tab-1627369395-8" type="radio" name="radio-set-1627369395-7" class="tab-selector-2" />
- <label for="tab-1627369395-8" class="tab-label-2">groovy</label>
+ <input id="tab-1627380416-7" type="radio" name="radio-set-1627380416-7" class="tab-selector-1" checked="checked" />
+ <label for="tab-1627380416-7" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1627380416-8" type="radio" name="radio-set-1627380416-7" class="tab-selector-2" />
+ <label for="tab-1627380416-8" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -3446,10 +3446,10 @@ The previous examples invoke traversal s
as a performance optimization.</p>
</div>
<section class="tabs tabs-2">
- <input id="tab-1627369395-9" type="radio" name="radio-set-1627369395-9" class="tab-selector-1" checked="checked" />
- <label for="tab-1627369395-9" class="tab-label-1">console (groovy)</label>
- <input id="tab-1627369395-10" type="radio" name="radio-set-1627369395-9" class="tab-selector-2" />
- <label for="tab-1627369395-10" class="tab-label-2">groovy</label>
+ <input id="tab-1627380416-9" type="radio" name="radio-set-1627380416-9" class="tab-selector-1" checked="checked" />
+ <label for="tab-1627380416-9" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1627380416-10" type="radio" name="radio-set-1627380416-9" class="tab-selector-2" />
+ <label for="tab-1627380416-10" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -3505,10 +3505,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-1627369395-11" type="radio" name="radio-set-1627369395-11" class="tab-selector-1" checked="checked" />
- <label for="tab-1627369395-11" class="tab-label-1">console (groovy)</label>
- <input id="tab-1627369395-12" type="radio" name="radio-set-1627369395-11" class="tab-selector-2" />
- <label for="tab-1627369395-12" class="tab-label-2">groovy</label>
+ <input id="tab-1627380416-11" type="radio" name="radio-set-1627380416-11" class="tab-selector-1" checked="checked" />
+ <label for="tab-1627380416-11" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1627380416-12" type="radio" name="radio-set-1627380416-11" class="tab-selector-2" />
+ <label for="tab-1627380416-12" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -3539,10 +3539,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-1627369395-13" type="radio" name="radio-set-1627369395-13" class="tab-selector-1" checked="checked" />
- <label for="tab-1627369395-13" class="tab-label-1">console (groovy)</label>
- <input id="tab-1627369395-14" type="radio" name="radio-set-1627369395-13" class="tab-selector-2" />
- <label for="tab-1627369395-14" class="tab-label-2">groovy</label>
+ <input id="tab-1627380416-13" type="radio" name="radio-set-1627380416-13" class="tab-selector-1" checked="checked" />
+ <label for="tab-1627380416-13" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1627380416-14" type="radio" name="radio-set-1627380416-13" class="tab-selector-2" />
+ <label for="tab-1627380416-14" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -3592,10 +3592,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-1627369432-1" type="radio" name="radio-set-1627369432-1" class="tab-selector-1" checked="checked" />
- <label for="tab-1627369432-1" class="tab-label-1">console (groovy)</label>
- <input id="tab-1627369432-2" type="radio" name="radio-set-1627369432-1" class="tab-selector-2" />
- <label for="tab-1627369432-2" class="tab-label-2">groovy</label>
+ <input id="tab-1627380448-1" type="radio" name="radio-set-1627380448-1" class="tab-selector-1" checked="checked" />
+ <label for="tab-1627380448-1" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1627380448-2" type="radio" name="radio-set-1627380448-1" class="tab-selector-2" />
+ <label for="tab-1627380448-2" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -3641,10 +3641,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-1627369432-3" type="radio" name="radio-set-1627369432-3" class="tab-selector-1" checked="checked" />
- <label for="tab-1627369432-3" class="tab-label-1">console (groovy)</label>
- <input id="tab-1627369432-4" type="radio" name="radio-set-1627369432-3" class="tab-selector-2" />
- <label for="tab-1627369432-4" class="tab-label-2">groovy</label>
+ <input id="tab-1627380448-3" type="radio" name="radio-set-1627380448-3" class="tab-selector-1" checked="checked" />
+ <label for="tab-1627380448-3" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1627380448-4" type="radio" name="radio-set-1627380448-3" class="tab-selector-2" />
+ <label for="tab-1627380448-4" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -3693,10 +3693,10 @@ be created with the same properties and
follows:</p>
</div>
<section class="tabs tabs-2">
- <input id="tab-1627369452-1" type="radio" name="radio-set-1627369452-1" class="tab-selector-1" checked="checked" />
- <label for="tab-1627369452-1" class="tab-label-1">console (groovy)</label>
- <input id="tab-1627369452-2" type="radio" name="radio-set-1627369452-1" class="tab-selector-2" />
- <label for="tab-1627369452-2" class="tab-label-2">groovy</label>
+ <input id="tab-1627380462-1" type="radio" name="radio-set-1627380462-1" class="tab-selector-1" checked="checked" />
+ <label for="tab-1627380462-1" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1627380462-2" type="radio" name="radio-set-1627380462-1" class="tab-selector-2" />
+ <label for="tab-1627380462-2" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -3728,10 +3728,10 @@ follows:</p>
the "peter" vertex in a single traversal:</p>
</div>
<section class="tabs tabs-2">
- <input id="tab-1627369452-3" type="radio" name="radio-set-1627369452-3" class="tab-selector-1" checked="checked" />
- <label for="tab-1627369452-3" class="tab-label-1">console (groovy)</label>
- <input id="tab-1627369452-4" type="radio" name="radio-set-1627369452-3" class="tab-selector-2" />
- <label for="tab-1627369452-4" class="tab-label-2">groovy</label>
+ <input id="tab-1627380462-3" type="radio" name="radio-set-1627380462-3" class="tab-selector-1" checked="checked" />
+ <label for="tab-1627380462-3" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1627380462-4" type="radio" name="radio-set-1627380462-3" class="tab-selector-2" />
+ <label for="tab-1627380462-4" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -3802,10 +3802,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-1627369471-1" type="radio" name="radio-set-1627369471-1" class="tab-selector-1" checked="checked" />
- <label for="tab-1627369471-1" class="tab-label-1">console (groovy)</label>
- <input id="tab-1627369471-2" type="radio" name="radio-set-1627369471-1" class="tab-selector-2" />
- <label for="tab-1627369471-2" class="tab-label-2">groovy</label>
+ <input id="tab-1627380477-1" type="radio" name="radio-set-1627380477-1" class="tab-selector-1" checked="checked" />
+ <label for="tab-1627380477-1" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1627380477-2" type="radio" name="radio-set-1627380477-1" class="tab-selector-2" />
+ <label for="tab-1627380477-2" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -3836,10 +3836,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-1627369471-3" type="radio" name="radio-set-1627369471-3" class="tab-selector-1" checked="checked" />
- <label for="tab-1627369471-3" class="tab-label-1">console (groovy)</label>
- <input id="tab-1627369471-4" type="radio" name="radio-set-1627369471-3" class="tab-selector-2" />
- <label for="tab-1627369471-4" class="tab-label-2">groovy</label>
+ <input id="tab-1627380477-3" type="radio" name="radio-set-1627380477-3" class="tab-selector-1" checked="checked" />
+ <label for="tab-1627380477-3" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1627380477-4" type="radio" name="radio-set-1627380477-3" class="tab-selector-2" />
+ <label for="tab-1627380477-4" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -3894,10 +3894,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-1627369471-5" type="radio" name="radio-set-1627369471-5" class="tab-selector-1" checked="checked" />
- <label for="tab-1627369471-5" class="tab-label-1">console (groovy)</label>
- <input id="tab-1627369471-6" type="radio" name="radio-set-1627369471-5" class="tab-selector-2" />
- <label for="tab-1627369471-6" class="tab-label-2">groovy</label>
+ <input id="tab-1627380477-5" type="radio" name="radio-set-1627380477-5" class="tab-selector-1" checked="checked" />
+ <label for="tab-1627380477-5" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1627380477-6" type="radio" name="radio-set-1627380477-5" class="tab-selector-2" />
+ <label for="tab-1627380477-6" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -3959,10 +3959,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-1627369471-7" type="radio" name="radio-set-1627369471-7" class="tab-selector-1" checked="checked" />
- <label for="tab-1627369471-7" class="tab-label-1">console (groovy)</label>
- <input id="tab-1627369471-8" type="radio" name="radio-set-1627369471-7" class="tab-selector-2" />
- <label for="tab-1627369471-8" class="tab-label-2">groovy</label>
+ <input id="tab-1627380477-7" type="radio" name="radio-set-1627380477-7" class="tab-selector-1" checked="checked" />
+ <label for="tab-1627380477-7" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1627380477-8" type="radio" name="radio-set-1627380477-7" class="tab-selector-2" />
+ <label for="tab-1627380477-8" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -4003,10 +4003,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-1627369498-1" type="radio" name="radio-set-1627369498-1" class="tab-selector-1" checked="checked" />
- <label for="tab-1627369498-1" class="tab-label-1">console (groovy)</label>
- <input id="tab-1627369498-2" type="radio" name="radio-set-1627369498-1" class="tab-selector-2" />
- <label for="tab-1627369498-2" class="tab-label-2">groovy</label>
+ <input id="tab-1627380500-1" type="radio" name="radio-set-1627380500-1" class="tab-selector-1" checked="checked" />
+ <label for="tab-1627380500-1" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1627380500-2" type="radio" name="radio-set-1627380500-1" class="tab-selector-2" />
+ <label for="tab-1627380500-2" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -4034,10 +4034,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-1627369498-3" type="radio" name="radio-set-1627369498-3" class="tab-selector-1" checked="checked" />
- <label for="tab-1627369498-3" class="tab-label-1">console (groovy)</label>
- <input id="tab-1627369498-4" type="radio" name="radio-set-1627369498-3" class="tab-selector-2" />
- <label for="tab-1627369498-4" class="tab-label-2">groovy</label>
+ <input id="tab-1627380500-3" type="radio" name="radio-set-1627380500-3" class="tab-selector-1" checked="checked" />
+ <label for="tab-1627380500-3" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1627380500-4" type="radio" name="radio-set-1627380500-3" class="tab-selector-2" />
+ <label for="tab-1627380500-4" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -4089,10 +4089,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-1627369498-5" type="radio" name="radio-set-1627369498-5" class="tab-selector-1" checked="checked" />
- <label for="tab-1627369498-5" class="tab-label-1">console (groovy)</label>
- <input id="tab-1627369498-6" type="radio" name="radio-set-1627369498-5" class="tab-selector-2" />
- <label for="tab-1627369498-6" class="tab-label-2">groovy</label>
+ <input id="tab-1627380500-5" type="radio" name="radio-set-1627380500-5" class="tab-selector-1" checked="checked" />
+ <label for="tab-1627380500-5" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1627380500-6" type="radio" name="radio-set-1627380500-5" class="tab-selector-2" />
+ <label for="tab-1627380500-6" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -4136,10 +4136,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-1627369519-1" type="radio" name="radio-set-1627369519-1" class="tab-selector-1" checked="checked" />
- <label for="tab-1627369519-1" class="tab-label-1">console (groovy)</label>
- <input id="tab-1627369519-2" type="radio" name="radio-set-1627369519-1" class="tab-selector-2" />
- <label for="tab-1627369519-2" class="tab-label-2">groovy</label>
+ <input id="tab-1627380519-1" type="radio" name="radio-set-1627380519-1" class="tab-selector-1" checked="checked" />
+ <label for="tab-1627380519-1" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1627380519-2" type="radio" name="radio-set-1627380519-1" class="tab-selector-2" />
+ <label for="tab-1627380519-2" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -4193,10 +4193,10 @@ start at vertex A and loop through all o
completed 3 loops.</p>
</div>
<section class="tabs tabs-2">
- <input id="tab-1627369519-3" type="radio" name="radio-set-1627369519-3" class="tab-selector-1" checked="checked" />
- <label for="tab-1627369519-3" class="tab-label-1">console (groovy)</label>
- <input id="tab-1627369519-4" type="radio" name="radio-set-1627369519-3" class="tab-selector-2" />
- <label for="tab-1627369519-4" class="tab-label-2">groovy</label>
+ <input id="tab-1627380519-3" type="radio" name="radio-set-1627380519-3" class="tab-selector-1" checked="checked" />
+ <label for="tab-1627380519-3" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1627380519-4" type="radio" name="radio-set-1627380519-3" class="tab-selector-2" />
+ <label for="tab-1627380519-4" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -4229,10 +4229,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-1627369519-5" type="radio" name="radio-set-1627369519-5" class="tab-selector-1" checked="checked" />
- <label for="tab-1627369519-5" class="tab-label-1">console (groovy)</label>
- <input id="tab-1627369519-6" type="radio" name="radio-set-1627369519-5" class="tab-selector-2" />
- <label for="tab-1627369519-6" class="tab-label-2">groovy</label>
+ <input id="tab-1627380519-5" type="radio" name="radio-set-1627380519-5" class="tab-selector-1" checked="checked" />
+ <label for="tab-1627380519-5" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1627380519-6" type="radio" name="radio-set-1627380519-5" class="tab-selector-2" />
+ <label for="tab-1627380519-6" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -4275,10 +4275,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-1627369519-7" type="radio" name="radio-set-1627369519-7" class="tab-selector-1" checked="checked" />
- <label for="tab-1627369519-7" class="tab-label-1">console (groovy)</label>
- <input id="tab-1627369519-8" type="radio" name="radio-set-1627369519-7" class="tab-selector-2" />
- <label for="tab-1627369519-8" class="tab-label-2">groovy</label>
+ <input id="tab-1627380519-7" type="radio" name="radio-set-1627380519-7" class="tab-selector-1" checked="checked" />
+ <label for="tab-1627380519-7" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1627380519-8" type="radio" name="radio-set-1627380519-7" class="tab-selector-2" />
+ <label for="tab-1627380519-8" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -4321,10 +4321,10 @@ several different recipes for accomplish
this can be accomplished with this traversal.</p>
</div>
<section class="tabs tabs-2">
- <input id="tab-1627369519-9" type="radio" name="radio-set-1627369519-9" class="tab-selector-1" checked="checked" />
- <label for="tab-1627369519-9" class="tab-label-1">console (groovy)</label>
- <input id="tab-1627369519-10" type="radio" name="radio-set-1627369519-9" class="tab-selector-2" />
- <label for="tab-1627369519-10" class="tab-label-2">groovy</label>
+ <input id="tab-1627380519-9" type="radio" name="radio-set-1627380519-9" class="tab-selector-1" checked="checked" />
+ <label for="tab-1627380519-9" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1627380519-10" type="radio" name="radio-set-1627380519-9" class="tab-selector-2" />
+ <label for="tab-1627380519-10" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -4370,10 +4370,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-1627369519-11" type="radio" name="radio-set-1627369519-11" class="tab-selector-1" checked="checked" />
- <label for="tab-1627369519-11" class="tab-label-1">console (groovy)</label>
- <input id="tab-1627369519-12" type="radio" name="radio-set-1627369519-11" class="tab-selector-2" />
- <label for="tab-1627369519-12" class="tab-label-2">groovy</label>
+ <input id="tab-1627380519-11" type="radio" name="radio-set-1627380519-11" class="tab-selector-1" checked="checked" />
+ <label for="tab-1627380519-11" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1627380519-12" type="radio" name="radio-set-1627380519-11" class="tab-selector-2" />
+ <label for="tab-1627380519-12" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -4404,10 +4404,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-1627369519-13" type="radio" name="radio-set-1627369519-13" class="tab-selector-1" checked="checked" />
- <label for="tab-1627369519-13" class="tab-label-1">console (groovy)</label>
- <input id="tab-1627369519-14" type="radio" name="radio-set-1627369519-13" class="tab-selector-2" />
- <label for="tab-1627369519-14" class="tab-label-2">groovy</label>
+ <input id="tab-1627380519-13" type="radio" name="radio-set-1627380519-13" class="tab-selector-1" checked="checked" />
+ <label for="tab-1627380519-13" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1627380519-14" type="radio" name="radio-set-1627380519-13" class="tab-selector-2" />
+ <label for="tab-1627380519-14" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -4434,10 +4434,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-1627369519-15" type="radio" name="radio-set-1627369519-15" class="tab-selector-1" checked="checked" />
- <label for="tab-1627369519-15" class="tab-label-1">console (groovy)</label>
- <input id="tab-1627369519-16" type="radio" name="radio-set-1627369519-15" class="tab-selector-2" />
- <label for="tab-1627369519-16" class="tab-label-2">groovy</label>
+ <input id="tab-1627380519-15" type="radio" name="radio-set-1627380519-15" class="tab-selector-1" checked="checked" />
+ <label for="tab-1627380519-15" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1627380519-16" type="radio" name="radio-set-1627380519-15" class="tab-selector-2" />
+ <label for="tab-1627380519-16" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -4472,10 +4472,10 @@ the number of elements being dropped fro
"modern" graph.</p>
</div>
<section class="tabs tabs-2">
- <input id="tab-1627369556-1" type="radio" name="radio-set-1627369556-1" class="tab-selector-1" checked="checked" />
- <label for="tab-1627369556-1" class="tab-label-1">console (groovy)</label>
- <input id="tab-1627369556-2" type="radio" name="radio-set-1627369556-1" class="tab-selector-2" />
- <label for="tab-1627369556-2" class="tab-label-2">groovy</label>
+ <input id="tab-1627380552-1" type="radio" name="radio-set-1627380552-1" class="tab-selector-1" checked="checked" />
+ <label for="tab-1627380552-1" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1627380552-2" type="radio" name="radio-set-1627380552-1" class="tab-selector-2" />
+ <label for="tab-1627380552-2" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -4535,10 +4535,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-1627369570-1" type="radio" name="radio-set-1627369570-1" class="tab-selector-1" checked="checked" />
- <label for="tab-1627369570-1" class="tab-label-1">console (groovy)</label>
- <input id="tab-1627369570-2" type="radio" name="radio-set-1627369570-1" class="tab-selector-2" />
- <label for="tab-1627369570-2" class="tab-label-2">groovy</label>
+ <input id="tab-1627380564-1" type="radio" name="radio-set-1627380564-1" class="tab-selector-1" checked="checked" />
+ <label for="tab-1627380564-1" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1627380564-2" type="radio" name="radio-set-1627380564-1" class="tab-selector-2" />
+ <label for="tab-1627380564-2" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -4604,10 +4604,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-1627369570-3" type="radio" name="radio-set-1627369570-3" class="tab-selector-1" checked="checked" />
- <label for="tab-1627369570-3" class="tab-label-1">console (groovy)</label>
- <input id="tab-1627369570-4" type="radio" name="radio-set-1627369570-3" class="tab-selector-2" />
- <label for="tab-1627369570-4" class="tab-label-2">groovy</label>
+ <input id="tab-1627380564-3" type="radio" name="radio-set-1627380564-3" class="tab-selector-1" checked="checked" />
+ <label for="tab-1627380564-3" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1627380564-4" type="radio" name="radio-set-1627380564-3" class="tab-selector-2" />
+ <label for="tab-1627380564-4" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -4657,10 +4657,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-1627369570-5" type="radio" name="radio-set-1627369570-5" class="tab-selector-1" checked="checked" />
- <label for="tab-1627369570-5" class="tab-label-1">console (groovy)</label>
- <input id="tab-1627369570-6" type="radio" name="radio-set-1627369570-5" class="tab-selector-2" />
- <label for="tab-1627369570-6" class="tab-label-2">groovy</label>
+ <input id="tab-1627380564-5" type="radio" name="radio-set-1627380564-5" class="tab-selector-1" checked="checked" />
+ <label for="tab-1627380564-5" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1627380564-6" type="radio" name="radio-set-1627380564-5" class="tab-selector-2" />
+ <label for="tab-1627380564-6" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -4724,10 +4724,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-1627369593-1" type="radio" name="radio-set-1627369593-1" class="tab-selector-1" checked="checked" />
- <label for="tab-1627369593-1" class="tab-label-1">console (groovy)</label>
- <input id="tab-1627369593-2" type="radio" name="radio-set-1627369593-1" class="tab-selector-2" />
- <label for="tab-1627369593-2" class="tab-label-2">groovy</label>
+ <input id="tab-1627380584-1" type="radio" name="radio-set-1627380584-1" class="tab-selector-1" checked="checked" />
+ <label for="tab-1627380584-1" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1627380584-2" type="radio" name="radio-set-1627380584-1" class="tab-selector-2" />
+ <label for="tab-1627380584-2" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -4805,10 +4805,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-1627369593-3" type="radio" name="radio-set-1627369593-3" class="tab-selector-1" checked="checked" />
- <label for="tab-1627369593-3" class="tab-label-1">console (groovy)</label>
- <input id="tab-1627369593-4" type="radio" name="radio-set-1627369593-3" class="tab-selector-2" />
- <label for="tab-1627369593-4" class="tab-label-2">groovy</label>
+ <input id="tab-1627380584-3" type="radio" name="radio-set-1627380584-3" class="tab-selector-1" checked="checked" />
+ <label for="tab-1627380584-3" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1627380584-4" type="radio" name="radio-set-1627380584-3" class="tab-selector-2" />
+ <label for="tab-1627380584-4" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -4845,10 +4845,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-1627369593-5" type="radio" name="radio-set-1627369593-5" class="tab-selector-1" checked="checked" />
- <label for="tab-1627369593-5" class="tab-label-1">console (groovy)</label>
- <input id="tab-1627369593-6" type="radio" name="radio-set-1627369593-5" class="tab-selector-2" />
- <label for="tab-1627369593-6" class="tab-label-2">groovy</label>
+ <input id="tab-1627380584-5" type="radio" name="radio-set-1627380584-5" class="tab-selector-1" checked="checked" />
+ <label for="tab-1627380584-5" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1627380584-6" type="radio" name="radio-set-1627380584-5" class="tab-selector-2" />
+ <label for="tab-1627380584-6" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -4878,10 +4878,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-1627369593-7" type="radio" name="radio-set-1627369593-7" class="tab-selector-1" checked="checked" />
- <label for="tab-1627369593-7" class="tab-label-1">console (groovy)</label>
- <input id="tab-1627369593-8" type="radio" name="radio-set-1627369593-7" class="tab-selector-2" />
- <label for="tab-1627369593-8" class="tab-label-2">groovy</label>
+ <input id="tab-1627380584-7" type="radio" name="radio-set-1627380584-7" class="tab-selector-1" checked="checked" />
+ <label for="tab-1627380584-7" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1627380584-8" type="radio" name="radio-set-1627380584-7" class="tab-selector-2" />
+ <label for="tab-1627380584-8" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -4922,10 +4922,10 @@ interest is in what individuals other th
they bought:</p>
</div>
<section class="tabs tabs-2">
- <input id="tab-1627369593-9" type="radio" name="radio-set-1627369593-9" class="tab-selector-1" checked="checked" />
- <label for="tab-1627369593-9" class="tab-label-1">console (groovy)</label>
- <input id="tab-1627369593-10" type="radio" name="radio-set-1627369593-9" class="tab-selector-2" />
- <label for="tab-1627369593-10" class="tab-label-2">groovy</label>
+ <input id="tab-1627380584-9" type="radio" name="radio-set-1627380584-9" class="tab-selector-1" checked="checked" />
+ <label for="tab-1627380584-9" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1627380584-10" type="radio" name="radio-set-1627380584-9" class="tab-selector-2" />
+ <label for="tab-1627380584-10" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -4972,10 +4972,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-1627369593-11" type="radio" name="radio-set-1627369593-11" class="tab-selector-1" checked="checked" />
- <label for="tab-1627369593-11" class="tab-label-1">console (groovy)</label>
- <input id="tab-1627369593-12" type="radio" name="radio-set-1627369593-11" class="tab-selector-2" />
- <label for="tab-1627369593-12" class="tab-label-2">groovy</label>
+ <input id="tab-1627380584-11" type="radio" name="radio-set-1627380584-11" class="tab-selector-1" checked="checked" />
+ <label for="tab-1627380584-11" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1627380584-12" type="radio" name="radio-set-1627380584-11" class="tab-selector-2" />
+ <label for="tab-1627380584-12" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -5016,10 +5016,10 @@ that she already owns. Those products sh
purposes) to form a ranking:</p>
</div>
<section class="tabs tabs-2">
- <input id="tab-1627369593-13" type="radio" name="radio-set-1627369593-13" class="tab-selector-1" checked="checked" />
- <label for="tab-1627369593-13" class="tab-label-1">console (groovy)</label>
- <input id="tab-1627369593-14" type="radio" name="radio-set-1627369593-13" class="tab-selector-2" />
- <label for="tab-1627369593-14" class="tab-label-2">groovy</label>
+ <input id="tab-1627380584-13" type="radio" name="radio-set-1627380584-13" class="tab-selector-1" checked="checked" />
+ <label for="tab-1627380584-13" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1627380584-14" type="radio" name="radio-set-1627380584-13" class="tab-selector-2" />
+ <label for="tab-1627380584-14" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -5082,10 +5082,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-1627369593-15" type="radio" name="radio-set-1627369593-15" class="tab-selector-1" checked="checked" />
- <label for="tab-1627369593-15" class="tab-label-1">console (groovy)</label>
- <input id="tab-1627369593-16" type="radio" name="radio-set-1627369593-15" class="tab-selector-2" />
- <label for="tab-1627369593-16" class="tab-label-2">groovy</label>
+ <input id="tab-1627380584-15" type="radio" name="radio-set-1627380584-15" class="tab-selector-1" checked="checked" />
+ <label for="tab-1627380584-15" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1627380584-16" type="radio" name="radio-set-1627380584-15" class="tab-selector-2" />
+ <label for="tab-1627380584-16" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -5117,10 +5117,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-1627369593-17" type="radio" name="radio-set-1627369593-17" class="tab-selector-1" checked="checked" />
- <label for="tab-1627369593-17" class="tab-label-1">console (groovy)</label>
- <input id="tab-1627369593-18" type="radio" name="radio-set-1627369593-17" class="tab-selector-2" />
- <label for="tab-1627369593-18" class="tab-label-2">groovy</label>
+ <input id="tab-1627380584-17" type="radio" name="radio-set-1627380584-17" class="tab-selector-1" checked="checked" />
+ <label for="tab-1627380584-17" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1627380584-18" type="radio" name="radio-set-1627380584-17" class="tab-selector-2" />
+ <label for="tab-1627380584-18" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -5156,10 +5156,10 @@ who have at least one product in common:
that maximum:</p>
</div>
<section class="tabs tabs-2">
- <input id="tab-1627369593-19" type="radio" name="radio-set-1627369593-19" class="tab-selector-1" checked="checked" />
- <label for="tab-1627369593-19" class="tab-label-1">console (groovy)</label>
- <input id="tab-1627369593-20" type="radio" name="radio-set-1627369593-19" class="tab-selector-2" />
- <label for="tab-1627369593-20" class="tab-label-2">groovy</label>
+ <input id="tab-1627380584-19" type="radio" name="radio-set-1627380584-19" class="tab-selector-1" checked="checked" />
+ <label for="tab-1627380584-19" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1627380584-20" type="radio" name="radio-set-1627380584-19" class="tab-selector-2" />
+ <label for="tab-1627380584-20" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -5201,10 +5201,10 @@ that maximum:</p>
common:</p>
</div>
<section class="tabs tabs-2">
- <input id="tab-1627369593-21" type="radio" name="radio-set-1627369593-21" class="tab-selector-1" checked="checked" />
- <label for="tab-1627369593-21" class="tab-label-1">console (groovy)</label>
- <input id="tab-1627369593-22" type="radio" name="radio-set-1627369593-21" class="tab-selector-2" />
- <label for="tab-1627369593-22" class="tab-label-2">groovy</label>
+ <input id="tab-1627380584-21" type="radio" name="radio-set-1627380584-21" class="tab-selector-1" checked="checked" />
+ <label for="tab-1627380584-21" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1627380584-22" type="radio" name="radio-set-1627380584-21" class="tab-selector-2" />
+ <label for="tab-1627380584-22" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -5251,10 +5251,10 @@ common:</p>
purchased:</p>
</div>
<section class="tabs tabs-2">
- <input id="tab-1627369593-23" type="radio" name="radio-set-1627369593-23" class="tab-selector-1" checked="checked" />
- <label for="tab-1627369593-23" class="tab-label-1">console (groovy)</label>
- <input id="tab-1627369593-24" type="radio" name="radio-set-1627369593-23" class="tab-selector-2" />
- <label for="tab-1627369593-24" class="tab-label-2">groovy</label>
+ <input id="tab-1627380584-23" type="radio" name="radio-set-1627380584-23" class="tab-selector-1" checked="checked" />
+ <label for="tab-1627380584-23" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1627380584-24" type="radio" name="radio-set-1627380584-23" class="tab-selector-2" />
+ <label for="tab-1627380584-24" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -5304,10 +5304,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-1627369593-25" type="radio" name="radio-set-1627369593-25" class="tab-selector-1" checked="checked" />
- <label for="tab-1627369593-25" class="tab-label-1">console (groovy)</label>
- <input id="tab-1627369593-26" type="radio" name="radio-set-1627369593-25" class="tab-selector-2" />
- <label for="tab-1627369593-26" class="tab-label-2">groovy</label>
+ <input id="tab-1627380584-25" type="radio" name="radio-set-1627380584-25" class="tab-selector-1" checked="checked" />
+ <label for="tab-1627380584-25" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1627380584-26" type="radio" name="radio-set-1627380584-25" class="tab-selector-2" />
+ <label for="tab-1627380584-26" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -5367,10 +5367,10 @@ purchased:</p>
recommendation algorithm:</p>
</div>
<section class="tabs tabs-2">
- <input id="tab-1627369593-27" type="radio" name="radio-set-1627369593-27" class="tab-selector-1" checked="checked" />
- <label for="tab-1627369593-27" class="tab-label-1">console (groovy)</label>
- <input id="tab-1627369593-28" type="radio" name="radio-set-1627369593-27" class="tab-selector-2" />
- <label for="tab-1627369593-28" class="tab-label-2">groovy</label>
+ <input id="tab-1627380584-27" type="radio" name="radio-set-1627380584-27" class="tab-selector-1" checked="checked" />
+ <label for="tab-1627380584-27" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1627380584-28" type="radio" name="radio-set-1627380584-27" class="tab-selector-2" />
+ <label for="tab-1627380584-28" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -5417,10 +5417,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-1627369593-29" type="radio" name="radio-set-1627369593-29" class="tab-selector-1" checked="checked" />
- <label for="tab-1627369593-29" class="tab-label-1">console (groovy)</label>
- <input id="tab-1627369593-30" type="radio" name="radio-set-1627369593-29" class="tab-selector-2" />
- <label for="tab-1627369593-30" class="tab-label-2">groovy</label>
+ <input id="tab-1627380584-29" type="radio" name="radio-set-1627380584-29" class="tab-selector-1" checked="checked" />
+ <label for="tab-1627380584-29" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1627380584-30" type="radio" name="radio-set-1627380584-29" class="tab-selector-2" />
+ <label for="tab-1627380584-30" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -5474,10 +5474,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-1627369654-1" type="radio" name="radio-set-1627369654-1" class="tab-selector-1" checked="checked" />
- <label for="tab-1627369654-1" class="tab-label-1">console (groovy)</label>
- <input id="tab-1627369654-2" type="radio" name="radio-set-1627369654-1" class="tab-selector-2" />
- <label for="tab-1627369654-2" class="tab-label-2">groovy</label>
+ <input id="tab-1627380639-1" type="radio" name="radio-set-1627380639-1" class="tab-selector-1" checked="checked" />
+ <label for="tab-1627380639-1" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1627380639-2" type="radio" name="radio-set-1627380639-1" class="tab-selector-2" />
+ <label for="tab-1627380639-2" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -5549,10 +5549,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-1627369654-3" type="radio" name="radio-set-1627369654-3" class="tab-selector-1" checked="checked" />
- <label for="tab-1627369654-3" class="tab-label-1">console (groovy)</label>
- <input id="tab-1627369654-4" type="radio" name="radio-set-1627369654-3" class="tab-selector-2" />
- <label for="tab-1627369654-4" class="tab-label-2">groovy</label>
+ <input id="tab-1627380639-3" type="radio" name="radio-set-1627380639-3" class="tab-selector-1" checked="checked" />
+ <label for="tab-1627380639-3" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1627380639-4" type="radio" name="radio-set-1627380639-3" class="tab-selector-2" />
+ <label for="tab-1627380639-4" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -5586,10 +5586,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-1627369654-5" type="radio" name="radio-set-1627369654-5" class="tab-selector-1" checked="checked" />
- <label for="tab-1627369654-5" class="tab-label-1">console (groovy)</label>
- <input id="tab-1627369654-6" type="radio" name="radio-set-1627369654-5" class="tab-selector-2" />
- <label for="tab-1627369654-6" class="tab-label-2">groovy</label>
+ <input id="tab-1627380639-5" type="radio" name="radio-set-1627380639-5" class="tab-selector-1" checked="checked" />
+ <label for="tab-1627380639-5" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1627380639-6" type="radio" name="radio-set-1627380639-5" class="tab-selector-2" />
+ <label for="tab-1627380639-6" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -5691,10 +5691,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-1627369654-7" type="radio" name="radio-set-1627369654-7" class="tab-selector-1" checked="checked" />
- <label for="tab-1627369654-7" class="tab-label-1">console (groovy)</label>
- <input id="tab-1627369654-8" type="radio" name="radio-set-1627369654-7" class="tab-selector-2" />
- <label for="tab-1627369654-8" class="tab-label-2">groovy</label>
+ <input id="tab-1627380639-7" type="radio" name="radio-set-1627380639-7" class="tab-selector-1" checked="checked" />
+ <label for="tab-1627380639-7" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1627380639-8" type="radio" name="radio-set-1627380639-7" class="tab-selector-2" />
+ <label for="tab-1627380639-8" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -5729,10 +5729,10 @@ g.V(<span class="integer">1</span>).shor
in the modern toy graph.</p>
</div>
<section class="tabs tabs-2">
- <input id="tab-1627369654-9" type="radio" name="radio-set-1627369654-9" class="tab-selector-1" checked="checked" />
- <label for="tab-1627369654-9" class="tab-label-1">console (groovy)</label>
- <input id="tab-1627369654-10" type="radio" name="radio-set-1627369654-9" class="tab-selector-2" />
- <label for="tab-1627369654-10" class="tab-label-2">groovy</label>
+ <input id="tab-1627380639-9" type="radio" name="radio-set-1627380639-9" class="tab-selector-1" checked="checked" />
+ <label for="tab-1627380639-9" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1627380639-10" type="radio" name="radio-set-1627380639-9" class="tab-selector-2" />
+ <label for="tab-1627380639-10" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -5847,10 +5847,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-1627369654-11" type="radio" name="radio-set-1627369654-11" class="tab-selector-1" checked="checked" />
- <label for="tab-1627369654-11" class="tab-label-1">console (groovy)</label>
- <input id="tab-1627369654-12" type="radio" name="radio-set-1627369654-11" class="tab-selector-2" />
- <label for="tab-1627369654-12" class="tab-label-2">groovy</label>
+ <input id="tab-1627380639-11" type="radio" name="radio-set-1627380639-11" class="tab-selector-1" checked="checked" />
+ <label for="tab-1627380639-11" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1627380639-12" type="radio" name="radio-set-1627380639-11" class="tab-selector-2" />
+ <label for="tab-1627380639-12" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -5930,10 +5930,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-1627369654-13" type="radio" name="radio-set-1627369654-13" class="tab-selector-1" checked="checked" />
- <label for="tab-1627369654-13" class="tab-label-1">console (groovy)</label>
- <input id="tab-1627369654-14" type="radio" name="radio-set-1627369654-13" class="tab-selector-2" />
- <label for="tab-1627369654-14" class="tab-label-2">groovy</label>
+ <input id="tab-1627380639-13" type="radio" name="radio-set-1627380639-13" class="tab-selector-1" checked="checked" />
+ <label for="tab-1627380639-13" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1627380639-14" type="radio" name="radio-set-1627380639-13" class="tab-selector-2" />
+ <label for="tab-1627380639-14" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -6024,10 +6024,10 @@ shortest paths can be passed back into t
arguments.</p>
</div>
<section class="tabs tabs-2">
- <input id="tab-1627369692-1" type="radio" name="radio-set-1627369692-1" class="tab-selector-1" checked="checked" />
- <label for="tab-1627369692-1" class="tab-label-1">console (groovy)</label>
- <input id="tab-1627369692-2" type="radio" name="radio-set-1627369692-1" class="tab-selector-2" />
- <label for="tab-1627369692-2" class="tab-label-2">groovy</label>
+ <input id="tab-1627380674-1" type="radio" name="radio-set-1627380674-1" class="tab-selector-1" checked="checked" />
+ <label for="tab-1627380674-1" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1627380674-2" type="radio" name="radio-set-1627380674-1" class="tab-selector-2" />
+ <label for="tab-1627380674-2" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -6056,10 +6056,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-1627369692-3" type="radio" name="radio-set-1627369692-3" class="tab-selector-1" checked="checked" />
- <label for="tab-1627369692-3" class="tab-label-1">console (groovy)</label>
- <input id="tab-1627369692-4" type="radio" name="radio-set-1627369692-3" class="tab-selector-2" />
- <label for="tab-1627369692-4" class="tab-label-2">groovy</label>
+ <input id="tab-1627380674-3" type="radio" name="radio-set-1627380674-3" class="tab-selector-1" checked="checked" />
+ <label for="tab-1627380674-3" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1627380674-4" type="radio" name="radio-set-1627380674-3" class="tab-selector-2" />
+ <label for="tab-1627380674-4" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
[... 891 lines stripped ...]