You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by sp...@apache.org on 2019/10/09 23:39:10 UTC
svn commit: r1868209 [2/21] - in /tinkerpop/site:
docs/3.3.9-SNAPSHOT/dev/developer/ docs/3.3.9-SNAPSHOT/dev/provider/
docs/3.3.9-SNAPSHOT/recipes/ docs/3.3.9-SNAPSHOT/reference/
docs/3.3.9-SNAPSHOT/tutorials/getting-started/ docs/3.3.9-SNAPSHOT/tutori...
Modified: tinkerpop/site/docs/3.3.9-SNAPSHOT/recipes/index.html
URL: http://svn.apache.org/viewvc/tinkerpop/site/docs/3.3.9-SNAPSHOT/recipes/index.html?rev=1868209&r1=1868208&r2=1868209&view=diff
==============================================================================
--- tinkerpop/site/docs/3.3.9-SNAPSHOT/recipes/index.html (original)
+++ tinkerpop/site/docs/3.3.9-SNAPSHOT/recipes/index.html Wed Oct 9 23:39:08 2019
@@ -908,10 +908,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-1565614398-1" type="radio" name="radio-set-1565614398-1" class="tab-selector-1" checked="checked" />
- <label for="tab-1565614398-1" class="tab-label-1">console (groovy)</label>
- <input id="tab-1565614398-2" type="radio" name="radio-set-1565614398-1" class="tab-selector-2" />
- <label for="tab-1565614398-2" class="tab-label-2">groovy</label>
+ <input id="tab-1570660580-1" type="radio" name="radio-set-1570660580-1" class="tab-selector-1" checked="checked" />
+ <label for="tab-1570660580-1" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1570660580-2" type="radio" name="radio-set-1570660580-1" class="tab-selector-2" />
+ <label for="tab-1570660580-2" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -986,10 +986,10 @@ scenarios. For one such example, conside
vertices:</p>
</div>
<section class="tabs tabs-2">
- <input id="tab-1565614398-3" type="radio" name="radio-set-1565614398-3" class="tab-selector-1" checked="checked" />
- <label for="tab-1565614398-3" class="tab-label-1">console (groovy)</label>
- <input id="tab-1565614398-4" type="radio" name="radio-set-1565614398-3" class="tab-selector-2" />
- <label for="tab-1565614398-4" class="tab-label-2">groovy</label>
+ <input id="tab-1570660580-3" type="radio" name="radio-set-1570660580-3" class="tab-selector-1" checked="checked" />
+ <label for="tab-1570660580-3" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1570660580-4" type="radio" name="radio-set-1570660580-3" class="tab-selector-2" />
+ <label for="tab-1570660580-4" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -1038,10 +1038,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-1565614398-5" type="radio" name="radio-set-1565614398-5" class="tab-selector-1" checked="checked" />
- <label for="tab-1565614398-5" class="tab-label-1">console (groovy)</label>
- <input id="tab-1565614398-6" type="radio" name="radio-set-1565614398-5" class="tab-selector-2" />
- <label for="tab-1565614398-6" class="tab-label-2">groovy</label>
+ <input id="tab-1570660580-5" type="radio" name="radio-set-1570660580-5" class="tab-selector-1" checked="checked" />
+ <label for="tab-1570660580-5" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1570660580-6" type="radio" name="radio-set-1570660580-5" class="tab-selector-2" />
+ <label for="tab-1570660580-6" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -1177,10 +1177,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-1565614484-1" type="radio" name="radio-set-1565614484-1" class="tab-selector-1" checked="checked" />
- <label for="tab-1565614484-1" class="tab-label-1">console (groovy)</label>
- <input id="tab-1565614484-2" type="radio" name="radio-set-1565614484-1" class="tab-selector-2" />
- <label for="tab-1565614484-2" class="tab-label-2">groovy</label>
+ <input id="tab-1570660651-1" type="radio" name="radio-set-1570660651-1" class="tab-selector-1" checked="checked" />
+ <label for="tab-1570660651-1" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1570660651-2" type="radio" name="radio-set-1570660651-1" class="tab-selector-2" />
+ <label for="tab-1570660651-2" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -1275,10 +1275,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-1565614484-3" type="radio" name="radio-set-1565614484-3" class="tab-selector-1" checked="checked" />
- <label for="tab-1565614484-3" class="tab-label-1">console (groovy )</label>
- <input id="tab-1565614484-4" type="radio" name="radio-set-1565614484-3" class="tab-selector-2" />
- <label for="tab-1565614484-4" class="tab-label-2">groovy </label>
+ <input id="tab-1570660651-3" type="radio" name="radio-set-1570660651-3" class="tab-selector-1" checked="checked" />
+ <label for="tab-1570660651-3" class="tab-label-1">console (groovy )</label>
+ <input id="tab-1570660651-4" type="radio" name="radio-set-1570660651-3" class="tab-selector-2" />
+ <label for="tab-1570660651-4" class="tab-label-2">groovy </label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -1406,10 +1406,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-1565614484-5" type="radio" name="radio-set-1565614484-5" class="tab-selector-1" checked="checked" />
- <label for="tab-1565614484-5" class="tab-label-1">console (groovy)</label>
- <input id="tab-1565614484-6" type="radio" name="radio-set-1565614484-5" class="tab-selector-2" />
- <label for="tab-1565614484-6" class="tab-label-2">groovy</label>
+ <input id="tab-1570660651-5" type="radio" name="radio-set-1570660651-5" class="tab-selector-1" checked="checked" />
+ <label for="tab-1570660651-5" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1570660651-6" type="radio" name="radio-set-1570660651-5" class="tab-selector-2" />
+ <label for="tab-1570660651-6" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -1515,10 +1515,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-1565614484-7" type="radio" name="radio-set-1565614484-7" class="tab-selector-1" checked="checked" />
- <label for="tab-1565614484-7" class="tab-label-1">console (groovy)</label>
- <input id="tab-1565614484-8" type="radio" name="radio-set-1565614484-7" class="tab-selector-2" />
- <label for="tab-1565614484-8" class="tab-label-2">groovy</label>
+ <input id="tab-1570660651-7" type="radio" name="radio-set-1570660651-7" class="tab-selector-1" checked="checked" />
+ <label for="tab-1570660651-7" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1570660651-8" type="radio" name="radio-set-1570660651-7" class="tab-selector-2" />
+ <label for="tab-1570660651-8" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -1597,10 +1597,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-1565614484-9" type="radio" name="radio-set-1565614484-9" class="tab-selector-1" checked="checked" />
- <label for="tab-1565614484-9" class="tab-label-1">console (groovy)</label>
- <input id="tab-1565614484-10" type="radio" name="radio-set-1565614484-9" class="tab-selector-2" />
- <label for="tab-1565614484-10" class="tab-label-2">groovy</label>
+ <input id="tab-1570660651-9" type="radio" name="radio-set-1570660651-9" class="tab-selector-1" checked="checked" />
+ <label for="tab-1570660651-9" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1570660651-10" type="radio" name="radio-set-1570660651-9" class="tab-selector-2" />
+ <label for="tab-1570660651-10" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -1608,12 +1608,12 @@ can shorten the time required to get a r
<pre class="CodeRay highlight"><code data-lang="groovy">gremlin> g = graph.traversal().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().by(<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.11375510357865541</span>
-==><span class="float">0.11375510357865541</span>
==><span class="float">0.3047200907912249</span>
==><span class="float">0.14598540152719106</span>
==><span class="float">0.14598540152719106</span>
-==><span class="float">0.17579889899708231</span></code></pre>
+==><span class="float">0.17579889899708231</span>
+==><span class="float">0.11375510357865541</span>
+==><span class="float">0.11375510357865541</span></code></pre>
</div>
</div>
</div>
@@ -1658,10 +1658,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-1565614615-1" type="radio" name="radio-set-1565614615-1" class="tab-selector-1" checked="checked" />
- <label for="tab-1565614615-1" class="tab-label-1">console (groovy)</label>
- <input id="tab-1565614615-2" type="radio" name="radio-set-1565614615-1" class="tab-selector-2" />
- <label for="tab-1565614615-2" class="tab-label-2">groovy</label>
+ <input id="tab-1570660758-1" type="radio" name="radio-set-1570660758-1" class="tab-selector-1" checked="checked" />
+ <label for="tab-1570660758-1" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1570660758-2" type="radio" name="radio-set-1570660758-1" class="tab-selector-2" />
+ <label for="tab-1570660758-2" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -1690,10 +1690,10 @@ g.V().store(<span class="string"><span c
similar fashion to lists:</p>
</div>
<section class="tabs tabs-2">
- <input id="tab-1565614615-3" type="radio" name="radio-set-1565614615-3" class="tab-selector-1" checked="checked" />
- <label for="tab-1565614615-3" class="tab-label-1">console (groovy)</label>
- <input id="tab-1565614615-4" type="radio" name="radio-set-1565614615-3" class="tab-selector-2" />
- <label for="tab-1565614615-4" class="tab-label-2">groovy</label>
+ <input id="tab-1570660758-3" type="radio" name="radio-set-1570660758-3" class="tab-selector-1" checked="checked" />
+ <label for="tab-1570660758-3" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1570660758-4" type="radio" name="radio-set-1570660758-3" class="tab-selector-2" />
+ <label for="tab-1570660758-4" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -1726,10 +1726,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-1565614615-5" type="radio" name="radio-set-1565614615-5" class="tab-selector-1" checked="checked" />
- <label for="tab-1565614615-5" class="tab-label-1">console (groovy)</label>
- <input id="tab-1565614615-6" type="radio" name="radio-set-1565614615-5" class="tab-selector-2" />
- <label for="tab-1565614615-6" class="tab-label-2">groovy</label>
+ <input id="tab-1570660758-5" type="radio" name="radio-set-1570660758-5" class="tab-selector-1" checked="checked" />
+ <label for="tab-1570660758-5" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1570660758-6" type="radio" name="radio-set-1570660758-5" class="tab-selector-2" />
+ <label for="tab-1570660758-6" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -1769,10 +1769,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-1565614615-7" type="radio" name="radio-set-1565614615-7" class="tab-selector-1" checked="checked" />
- <label for="tab-1565614615-7" class="tab-label-1">console (groovy)</label>
- <input id="tab-1565614615-8" type="radio" name="radio-set-1565614615-7" class="tab-selector-2" />
- <label for="tab-1565614615-8" class="tab-label-2">groovy</label>
+ <input id="tab-1570660758-7" type="radio" name="radio-set-1570660758-7" class="tab-selector-1" checked="checked" />
+ <label for="tab-1570660758-7" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1570660758-8" type="radio" name="radio-set-1570660758-7" class="tab-selector-2" />
+ <label for="tab-1570660758-8" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -1814,10 +1814,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-1565614615-9" type="radio" name="radio-set-1565614615-9" class="tab-selector-1" checked="checked" />
- <label for="tab-1565614615-9" class="tab-label-1">console (groovy)</label>
- <input id="tab-1565614615-10" type="radio" name="radio-set-1565614615-9" class="tab-selector-2" />
- <label for="tab-1565614615-10" class="tab-label-2">groovy</label>
+ <input id="tab-1570660758-9" type="radio" name="radio-set-1570660758-9" class="tab-selector-1" checked="checked" />
+ <label for="tab-1570660758-9" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1570660758-10" type="radio" name="radio-set-1570660758-9" class="tab-selector-2" />
+ <label for="tab-1570660758-10" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -1852,10 +1852,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-1565614615-11" type="radio" name="radio-set-1565614615-11" class="tab-selector-1" checked="checked" />
- <label for="tab-1565614615-11" class="tab-label-1">console (groovy)</label>
- <input id="tab-1565614615-12" type="radio" name="radio-set-1565614615-11" class="tab-selector-2" />
- <label for="tab-1565614615-12" class="tab-label-2">groovy</label>
+ <input id="tab-1570660758-11" type="radio" name="radio-set-1570660758-11" class="tab-selector-1" checked="checked" />
+ <label for="tab-1570660758-11" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1570660758-12" type="radio" name="radio-set-1570660758-11" class="tab-selector-2" />
+ <label for="tab-1570660758-12" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -1933,10 +1933,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-1565614615-13" type="radio" name="radio-set-1565614615-13" class="tab-selector-1" checked="checked" />
- <label for="tab-1565614615-13" class="tab-label-1">console (groovy)</label>
- <input id="tab-1565614615-14" type="radio" name="radio-set-1565614615-13" class="tab-selector-2" />
- <label for="tab-1565614615-14" class="tab-label-2">groovy</label>
+ <input id="tab-1570660758-13" type="radio" name="radio-set-1570660758-13" class="tab-selector-1" checked="checked" />
+ <label for="tab-1570660758-13" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1570660758-14" type="radio" name="radio-set-1570660758-13" class="tab-selector-2" />
+ <label for="tab-1570660758-14" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -2017,10 +2017,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-1565614615-15" type="radio" name="radio-set-1565614615-15" class="tab-selector-1" checked="checked" />
- <label for="tab-1565614615-15" class="tab-label-1">console (groovy)</label>
- <input id="tab-1565614615-16" type="radio" name="radio-set-1565614615-15" class="tab-selector-2" />
- <label for="tab-1565614615-16" class="tab-label-2">groovy</label>
+ <input id="tab-1570660758-15" type="radio" name="radio-set-1570660758-15" class="tab-selector-1" checked="checked" />
+ <label for="tab-1570660758-15" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1570660758-16" type="radio" name="radio-set-1570660758-15" class="tab-selector-2" />
+ <label for="tab-1570660758-16" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -2131,10 +2131,10 @@ means that each traverser can effectivel
vertices each:</p>
</div>
<section class="tabs tabs-2">
- <input id="tab-1565614615-17" type="radio" name="radio-set-1565614615-17" class="tab-selector-1" checked="checked" />
- <label for="tab-1565614615-17" class="tab-label-1">console (groovy)</label>
- <input id="tab-1565614615-18" type="radio" name="radio-set-1565614615-17" class="tab-selector-2" />
- <label for="tab-1565614615-18" class="tab-label-2">groovy</label>
+ <input id="tab-1570660758-17" type="radio" name="radio-set-1570660758-17" class="tab-selector-1" checked="checked" />
+ <label for="tab-1570660758-17" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1570660758-18" type="radio" name="radio-set-1570660758-17" class="tab-selector-2" />
+ <label for="tab-1570660758-18" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -2161,10 +2161,10 @@ vertices each:</p>
results.</p>
</div>
<section class="tabs tabs-2">
- <input id="tab-1565614615-19" type="radio" name="radio-set-1565614615-19" class="tab-selector-1" checked="checked" />
- <label for="tab-1565614615-19" class="tab-label-1">console (groovy)</label>
- <input id="tab-1565614615-20" type="radio" name="radio-set-1565614615-19" class="tab-selector-2" />
- <label for="tab-1565614615-20" class="tab-label-2">groovy</label>
+ <input id="tab-1570660758-19" type="radio" name="radio-set-1570660758-19" class="tab-selector-1" checked="checked" />
+ <label for="tab-1570660758-19" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1570660758-20" type="radio" name="radio-set-1570660758-19" class="tab-selector-2" />
+ <label for="tab-1570660758-20" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -2231,10 +2231,10 @@ the stream from <code>union()</code> to
to end up with a <code>Map</code> is with <code>valueMap()</code>:</p>
</div>
<section class="tabs tabs-2">
- <input id="tab-1565614615-21" type="radio" name="radio-set-1565614615-21" class="tab-selector-1" checked="checked" />
- <label for="tab-1565614615-21" class="tab-label-1">console (groovy)</label>
- <input id="tab-1565614615-22" type="radio" name="radio-set-1565614615-21" class="tab-selector-2" />
- <label for="tab-1565614615-22" class="tab-label-2">groovy</label>
+ <input id="tab-1570660758-21" type="radio" name="radio-set-1570660758-21" class="tab-selector-1" checked="checked" />
+ <label for="tab-1570660758-21" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1570660758-22" type="radio" name="radio-set-1570660758-21" class="tab-selector-2" />
+ <label for="tab-1570660758-22" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -2261,10 +2261,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-1565614615-23" type="radio" name="radio-set-1565614615-23" class="tab-selector-1" checked="checked" />
- <label for="tab-1565614615-23" class="tab-label-1">console (groovy)</label>
- <input id="tab-1565614615-24" type="radio" name="radio-set-1565614615-23" class="tab-selector-2" />
- <label for="tab-1565614615-24" class="tab-label-2">groovy</label>
+ <input id="tab-1570660758-23" type="radio" name="radio-set-1570660758-23" class="tab-selector-1" checked="checked" />
+ <label for="tab-1570660758-23" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1570660758-24" type="radio" name="radio-set-1570660758-23" class="tab-selector-2" />
+ <label for="tab-1570660758-24" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -2294,10 +2294,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-1565614615-25" type="radio" name="radio-set-1565614615-25" class="tab-selector-1" checked="checked" />
- <label for="tab-1565614615-25" class="tab-label-1">console (groovy)</label>
- <input id="tab-1565614615-26" type="radio" name="radio-set-1565614615-25" class="tab-selector-2" />
- <label for="tab-1565614615-26" class="tab-label-2">groovy</label>
+ <input id="tab-1570660758-25" type="radio" name="radio-set-1570660758-25" class="tab-selector-1" checked="checked" />
+ <label for="tab-1570660758-25" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1570660758-26" type="radio" name="radio-set-1570660758-25" class="tab-selector-2" />
+ <label for="tab-1570660758-26" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -2347,10 +2347,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-1565614615-27" type="radio" name="radio-set-1565614615-27" class="tab-selector-1" checked="checked" />
- <label for="tab-1565614615-27" class="tab-label-1">console (groovy)</label>
- <input id="tab-1565614615-28" type="radio" name="radio-set-1565614615-27" class="tab-selector-2" />
- <label for="tab-1565614615-28" class="tab-label-2">groovy</label>
+ <input id="tab-1570660758-27" type="radio" name="radio-set-1570660758-27" class="tab-selector-1" checked="checked" />
+ <label for="tab-1570660758-27" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1570660758-28" type="radio" name="radio-set-1570660758-27" class="tab-selector-2" />
+ <label for="tab-1570660758-28" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -2390,10 +2390,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-1565614615-29" type="radio" name="radio-set-1565614615-29" class="tab-selector-1" checked="checked" />
- <label for="tab-1565614615-29" class="tab-label-1">console (groovy)</label>
- <input id="tab-1565614615-30" type="radio" name="radio-set-1565614615-29" class="tab-selector-2" />
- <label for="tab-1565614615-30" class="tab-label-2">groovy</label>
+ <input id="tab-1570660758-29" type="radio" name="radio-set-1570660758-29" class="tab-selector-1" checked="checked" />
+ <label for="tab-1570660758-29" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1570660758-30" type="radio" name="radio-set-1570660758-29" class="tab-selector-2" />
+ <label for="tab-1570660758-30" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -2443,10 +2443,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-1565614615-31" type="radio" name="radio-set-1565614615-31" class="tab-selector-1" checked="checked" />
- <label for="tab-1565614615-31" class="tab-label-1">console (groovy)</label>
- <input id="tab-1565614615-32" type="radio" name="radio-set-1565614615-31" class="tab-selector-2" />
- <label for="tab-1565614615-32" class="tab-label-2">groovy</label>
+ <input id="tab-1570660758-31" type="radio" name="radio-set-1570660758-31" class="tab-selector-1" checked="checked" />
+ <label for="tab-1570660758-31" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1570660758-32" type="radio" name="radio-set-1570660758-31" class="tab-selector-2" />
+ <label for="tab-1570660758-32" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -2496,10 +2496,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-1565614615-33" type="radio" name="radio-set-1565614615-33" class="tab-selector-1" checked="checked" />
- <label for="tab-1565614615-33" class="tab-label-1">console (groovy)</label>
- <input id="tab-1565614615-34" type="radio" name="radio-set-1565614615-33" class="tab-selector-2" />
- <label for="tab-1565614615-34" class="tab-label-2">groovy</label>
+ <input id="tab-1570660758-33" type="radio" name="radio-set-1570660758-33" class="tab-selector-1" checked="checked" />
+ <label for="tab-1570660758-33" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1570660758-34" type="radio" name="radio-set-1570660758-33" class="tab-selector-2" />
+ <label for="tab-1570660758-34" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -2513,7 +2513,7 @@ reconstructed as a new <code>Map</code>
group().
by(keys).
by(select(values).unfold())
-==>[<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">label</span>:person,<span class="key">age</span>:<span class="integer">29</span>]</code></pre>
+==>[<span class="key">degree</span>:<span class="integer">3</span>,<span class="key">name</span>:marko,<span class="key">label</span>:person,<span class="key">age</span>:<span class="integer">29</span>,<span class="key">id</span>:<span class="integer">1</span>]</code></pre>
</div>
</div>
</div>
@@ -2557,10 +2557,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-1565614615-35" type="radio" name="radio-set-1565614615-35" class="tab-selector-1" checked="checked" />
- <label for="tab-1565614615-35" class="tab-label-1">console (groovy)</label>
- <input id="tab-1565614615-36" type="radio" name="radio-set-1565614615-35" class="tab-selector-2" />
- <label for="tab-1565614615-36" class="tab-label-2">groovy</label>
+ <input id="tab-1570660758-35" type="radio" name="radio-set-1570660758-35" class="tab-selector-1" checked="checked" />
+ <label for="tab-1570660758-35" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1570660758-36" type="radio" name="radio-set-1570660758-35" class="tab-selector-2" />
+ <label for="tab-1570660758-36" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -2577,7 +2577,7 @@ a <code>List</code> back for all the val
unfold().
fold().
choose(count(local).is(eq(<span class="integer">1</span>)), unfold()))
-==>[<span class="key">id</span>:<span class="integer">1</span>,<span class="key">name</span>:marko,<span class="key">label</span>:person,<span class="key">age</span>:[<span class="integer">29</span>,<span class="integer">100</span>]]</code></pre>
+==>[<span class="key">name</span>:marko,<span class="key">label</span>:person,<span class="key">age</span>:[<span class="integer">29</span>,<span class="integer">100</span>],<span class="key">id</span>:<span class="integer">1</span>]</code></pre>
</div>
</div>
</div>
@@ -2616,10 +2616,10 @@ in a graph. Consider the following graph
<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-1565614930-1" type="radio" name="radio-set-1565614930-1" class="tab-selector-1" checked="checked" />
- <label for="tab-1565614930-1" class="tab-label-1">console (groovy)</label>
- <input id="tab-1565614930-2" type="radio" name="radio-set-1565614930-1" class="tab-selector-2" />
- <label for="tab-1565614930-2" class="tab-label-2">groovy</label>
+ <input id="tab-1570661037-1" type="radio" name="radio-set-1570661037-1" class="tab-selector-1" checked="checked" />
+ <label for="tab-1570661037-1" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1570661037-2" type="radio" name="radio-set-1570661037-1" class="tab-selector-2" />
+ <label for="tab-1570661037-2" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -2659,10 +2659,10 @@ in a graph. Consider the following graph
<p>One way to detect the various subgraphs would be to do something like this:</p>
</div>
<section class="tabs tabs-2">
- <input id="tab-1565614930-3" type="radio" name="radio-set-1565614930-3" class="tab-selector-1" checked="checked" />
- <label for="tab-1565614930-3" class="tab-label-1">console (groovy)</label>
- <input id="tab-1565614930-4" type="radio" name="radio-set-1565614930-3" class="tab-selector-2" />
- <label for="tab-1565614930-4" class="tab-label-2">groovy</label>
+ <input id="tab-1570661037-3" type="radio" name="radio-set-1570661037-3" class="tab-selector-1" checked="checked" />
+ <label for="tab-1570661037-3" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1570661037-4" type="radio" name="radio-set-1570661037-3" class="tab-selector-2" />
+ <label for="tab-1570661037-4" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -2743,10 +2743,10 @@ approach, but one more suited for OLAP e
<code>GraphComputer</code> is forced to analyze far more paths):</p>
</div>
<section class="tabs tabs-2">
- <input id="tab-1565614930-5" type="radio" name="radio-set-1565614930-5" class="tab-selector-1" checked="checked" />
- <label for="tab-1565614930-5" class="tab-label-1">console (groovy)</label>
- <input id="tab-1565614930-6" type="radio" name="radio-set-1565614930-5" class="tab-selector-2" />
- <label for="tab-1565614930-6" class="tab-label-2">groovy</label>
+ <input id="tab-1570661037-5" type="radio" name="radio-set-1570661037-5" class="tab-selector-1" checked="checked" />
+ <label for="tab-1570661037-5" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1570661037-6" type="radio" name="radio-set-1570661037-5" class="tab-selector-2" />
+ <label for="tab-1570661037-6" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -2792,10 +2792,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-1565615000-1" type="radio" name="radio-set-1565615000-1" class="tab-selector-1" checked="checked" />
- <label for="tab-1565615000-1" class="tab-label-1">console (groovy)</label>
- <input id="tab-1565615000-2" type="radio" name="radio-set-1565615000-1" class="tab-selector-2" />
- <label for="tab-1565615000-2" class="tab-label-2">groovy</label>
+ <input id="tab-1570661097-1" type="radio" name="radio-set-1570661097-1" class="tab-selector-1" checked="checked" />
+ <label for="tab-1570661097-1" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1570661097-2" type="radio" name="radio-set-1570661097-1" class="tab-selector-2" />
+ <label for="tab-1570661097-2" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -2869,10 +2869,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-1565615000-3" type="radio" name="radio-set-1565615000-3" class="tab-selector-1" checked="checked" />
- <label for="tab-1565615000-3" class="tab-label-1">console (groovy)</label>
- <input id="tab-1565615000-4" type="radio" name="radio-set-1565615000-3" class="tab-selector-2" />
- <label for="tab-1565615000-4" class="tab-label-2">groovy</label>
+ <input id="tab-1570661097-3" type="radio" name="radio-set-1570661097-3" class="tab-selector-1" checked="checked" />
+ <label for="tab-1570661097-3" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1570661097-4" type="radio" name="radio-set-1570661097-3" class="tab-selector-2" />
+ <label for="tab-1570661097-4" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -2935,10 +2935,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-1565615000-5" type="radio" name="radio-set-1565615000-5" class="tab-selector-1" checked="checked" />
- <label for="tab-1565615000-5" class="tab-label-1">console (groovy)</label>
- <input id="tab-1565615000-6" type="radio" name="radio-set-1565615000-5" class="tab-selector-2" />
- <label for="tab-1565615000-6" class="tab-label-2">groovy</label>
+ <input id="tab-1570661097-5" type="radio" name="radio-set-1570661097-5" class="tab-selector-1" checked="checked" />
+ <label for="tab-1570661097-5" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1570661097-6" type="radio" name="radio-set-1570661097-5" class="tab-selector-2" />
+ <label for="tab-1570661097-6" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -2976,10 +2976,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-1565615000-7" type="radio" name="radio-set-1565615000-7" class="tab-selector-1" checked="checked" />
- <label for="tab-1565615000-7" class="tab-label-1">console (groovy)</label>
- <input id="tab-1565615000-8" type="radio" name="radio-set-1565615000-7" class="tab-selector-2" />
- <label for="tab-1565615000-8" class="tab-label-2">groovy</label>
+ <input id="tab-1570661097-7" type="radio" name="radio-set-1570661097-7" class="tab-selector-1" checked="checked" />
+ <label for="tab-1570661097-7" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1570661097-8" type="radio" name="radio-set-1570661097-7" class="tab-selector-2" />
+ <label for="tab-1570661097-8" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -3061,10 +3061,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-1565615000-9" type="radio" name="radio-set-1565615000-9" class="tab-selector-1" checked="checked" />
- <label for="tab-1565615000-9" class="tab-label-1">console (groovy)</label>
- <input id="tab-1565615000-10" type="radio" name="radio-set-1565615000-9" class="tab-selector-2" />
- <label for="tab-1565615000-10" class="tab-label-2">groovy</label>
+ <input id="tab-1570661097-9" type="radio" name="radio-set-1570661097-9" class="tab-selector-1" checked="checked" />
+ <label for="tab-1570661097-9" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1570661097-10" type="radio" name="radio-set-1570661097-9" class="tab-selector-2" />
+ <label for="tab-1570661097-10" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -3114,10 +3114,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-1565615114-1" type="radio" name="radio-set-1565615114-1" class="tab-selector-1" checked="checked" />
- <label for="tab-1565615114-1" class="tab-label-1">console (groovy)</label>
- <input id="tab-1565615114-2" type="radio" name="radio-set-1565615114-1" class="tab-selector-2" />
- <label for="tab-1565615114-2" class="tab-label-2">groovy</label>
+ <input id="tab-1570661191-1" type="radio" name="radio-set-1570661191-1" class="tab-selector-1" checked="checked" />
+ <label for="tab-1570661191-1" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1570661191-2" type="radio" name="radio-set-1570661191-1" class="tab-selector-2" />
+ <label for="tab-1570661191-2" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -3145,10 +3145,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-1565615114-3" type="radio" name="radio-set-1565615114-3" class="tab-selector-1" checked="checked" />
- <label for="tab-1565615114-3" class="tab-label-1">console (groovy)</label>
- <input id="tab-1565615114-4" type="radio" name="radio-set-1565615114-3" class="tab-selector-2" />
- <label for="tab-1565615114-4" class="tab-label-2">groovy</label>
+ <input id="tab-1570661191-3" type="radio" name="radio-set-1570661191-3" class="tab-selector-1" checked="checked" />
+ <label for="tab-1570661191-3" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1570661191-4" type="radio" name="radio-set-1570661191-3" class="tab-selector-2" />
+ <label for="tab-1570661191-4" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -3211,10 +3211,10 @@ contain duplicate.</p>
that uses less memory might look like this:</p>
</div>
<section class="tabs tabs-2">
- <input id="tab-1565615114-5" type="radio" name="radio-set-1565615114-5" class="tab-selector-1" checked="checked" />
- <label for="tab-1565615114-5" class="tab-label-1">console (groovy)</label>
- <input id="tab-1565615114-6" type="radio" name="radio-set-1565615114-5" class="tab-selector-2" />
- <label for="tab-1565615114-6" class="tab-label-2">groovy</label>
+ <input id="tab-1570661191-5" type="radio" name="radio-set-1570661191-5" class="tab-selector-1" checked="checked" />
+ <label for="tab-1570661191-5" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1570661191-6" type="radio" name="radio-set-1570661191-5" class="tab-selector-2" />
+ <label for="tab-1570661191-6" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -3283,10 +3283,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-1565615114-7" type="radio" name="radio-set-1565615114-7" class="tab-selector-1" checked="checked" />
- <label for="tab-1565615114-7" class="tab-label-1">console (groovy)</label>
- <input id="tab-1565615114-8" type="radio" name="radio-set-1565615114-7" class="tab-selector-2" />
- <label for="tab-1565615114-8" class="tab-label-2">groovy</label>
+ <input id="tab-1570661191-7" type="radio" name="radio-set-1570661191-7" class="tab-selector-1" checked="checked" />
+ <label for="tab-1570661191-7" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1570661191-8" type="radio" name="radio-set-1570661191-7" class="tab-selector-2" />
+ <label for="tab-1570661191-8" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -3335,10 +3335,10 @@ The previous examples invoke traversal s
as a performance optimization.</p>
</div>
<section class="tabs tabs-2">
- <input id="tab-1565615114-9" type="radio" name="radio-set-1565615114-9" class="tab-selector-1" checked="checked" />
- <label for="tab-1565615114-9" class="tab-label-1">console (groovy)</label>
- <input id="tab-1565615114-10" type="radio" name="radio-set-1565615114-9" class="tab-selector-2" />
- <label for="tab-1565615114-10" class="tab-label-2">groovy</label>
+ <input id="tab-1570661191-9" type="radio" name="radio-set-1570661191-9" class="tab-selector-1" checked="checked" />
+ <label for="tab-1570661191-9" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1570661191-10" type="radio" name="radio-set-1570661191-9" class="tab-selector-2" />
+ <label for="tab-1570661191-10" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -3394,10 +3394,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-1565615114-11" type="radio" name="radio-set-1565615114-11" class="tab-selector-1" checked="checked" />
- <label for="tab-1565615114-11" class="tab-label-1">console (groovy)</label>
- <input id="tab-1565615114-12" type="radio" name="radio-set-1565615114-11" class="tab-selector-2" />
- <label for="tab-1565615114-12" class="tab-label-2">groovy</label>
+ <input id="tab-1570661191-11" type="radio" name="radio-set-1570661191-11" class="tab-selector-1" checked="checked" />
+ <label for="tab-1570661191-11" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1570661191-12" type="radio" name="radio-set-1570661191-11" class="tab-selector-2" />
+ <label for="tab-1570661191-12" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -3405,9 +3405,9 @@ demonstration, an additional edge is add
<pre class="CodeRay highlight"><code data-lang="groovy">gremlin> g.V(<span class="integer">1</span>).as(<span class="string"><span class="delimiter">"</span><span class="content">a</span><span class="delimiter">"</span></span>).V(<span class="integer">3</span>).addE(<span class="string"><span class="delimiter">"</span><span class="content">created</span><span class="delimiter">"</span></span>).property(<span class="string"><span class="delimiter">"</span><span class="content">weight</span><span class="delimiter">"</span></span>,<span class="float">0.4d</span>).from(<span class="string"><span class="delimiter">"</span><span class="content">a</span><span class="delimiter">"</span></span>).iterate()
gremlin> g.V(<span class="integer">1</span>).as(<span class="string"><span class="delimiter">"</span><span class="content">a</span><span class="delimiter">"</span></span>).V(<span class="integer">3</span>).addE(<span class="string"><span class="delimiter">"</span><span class="content">created</span><span class="delimiter">"</span></span>).property(<span class="string"><span class="delimiter">"</span><span class="content">weight</span><span class="delimiter">"</span></span>,<span class="float">0.5d</span>).from(<span class="string"><span class="delimiter">"</span><span class="content">a</span><span class="delimiter">"</span></span>).iterate()
gremlin> g.V(<span class="integer">1</span>).outE(<span class="string"><span class="delimiter">"</span><span class="content">created</span><span class="delimiter">"</span></span>).valueMap(<span class="predefined-constant">true</span>)
-==>[<span class="key">id</span>:<span class="integer">9</span>,<span class="key">weight</span>:<span class="float">0.4</span>,<span class="key">label</span>:created]
-==>[<span class="key">id</span>:<span class="integer">13</span>,<span class="key">weight</span>:<span class="float">0.4</span>,<span class="key">label</span>:created]
-==>[<span class="key">id</span>:<span class="integer">14</span>,<span class="key">weight</span>:<span class="float">0.5</span>,<span class="key">label</span>:created]</code></pre>
+==>[<span class="key">weight</span>:<span class="float">0.4</span>,<span class="key">label</span>:created,<span class="key">id</span>:<span class="integer">9</span>]
+==>[<span class="key">weight</span>:<span class="float">0.4</span>,<span class="key">label</span>:created,<span class="key">id</span>:<span class="integer">13</span>]
+==>[<span class="key">weight</span>:<span class="float">0.5</span>,<span class="key">label</span>:created,<span class="key">id</span>:<span class="integer">14</span>]</code></pre>
</div>
</div>
</div>
@@ -3428,10 +3428,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-1565615114-13" type="radio" name="radio-set-1565615114-13" class="tab-selector-1" checked="checked" />
- <label for="tab-1565615114-13" class="tab-label-1">console (groovy)</label>
- <input id="tab-1565615114-14" type="radio" name="radio-set-1565615114-13" class="tab-selector-2" />
- <label for="tab-1565615114-14" class="tab-label-2">groovy</label>
+ <input id="tab-1570661191-13" type="radio" name="radio-set-1570661191-13" class="tab-selector-1" checked="checked" />
+ <label for="tab-1570661191-13" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1570661191-14" type="radio" name="radio-set-1570661191-13" class="tab-selector-2" />
+ <label for="tab-1570661191-14" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -3444,8 +3444,8 @@ g.V(<span class="integer">1</span>).outE
where(outV().as(<span class="string"><span class="delimiter">"</span><span class="content">ov</span><span class="delimiter">"</span></span>)).as(<span class="string"><span class="delimiter">"</span><span class="content">e2</span><span class="delimiter">"</span></span>).
where(<span class="string"><span class="delimiter">"</span><span class="content">e1</span><span class="delimiter">"</span></span>, eq(<span class="string"><span class="delimiter">"</span><span class="content">e2</span><span class="delimiter">"</span></span>)).by(label).
where(<span class="string"><span class="delimiter">"</span><span class="content">e1</span><span class="delimiter">"</span></span>, eq(<span class="string"><span class="delimiter">"</span><span class="content">e2</span><span class="delimiter">"</span></span>)).by(<span class="string"><span class="delimiter">"</span><span class="content">weight</span><span class="delimiter">"</span></span>).valueMap(<span class="predefined-constant">true</span>)
-==>[<span class="key">id</span>:<span class="integer">13</span>,<span class="key">weight</span>:<span class="float">0.4</span>,<span class="key">label</span>:created]
-==>[<span class="key">id</span>:<span class="integer">9</span>,<span class="key">weight</span>:<span class="float">0.4</span>,<span class="key">label</span>:created]</code></pre>
+==>[<span class="key">weight</span>:<span class="float">0.4</span>,<span class="key">label</span>:created,<span class="key">id</span>:<span class="integer">13</span>]
+==>[<span class="key">weight</span>:<span class="float">0.4</span>,<span class="key">label</span>:created,<span class="key">id</span>:<span class="integer">9</span>]</code></pre>
</div>
</div>
</div>
@@ -3481,10 +3481,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-1565615244-1" type="radio" name="radio-set-1565615244-1" class="tab-selector-1" checked="checked" />
- <label for="tab-1565615244-1" class="tab-label-1">console (groovy)</label>
- <input id="tab-1565615244-2" type="radio" name="radio-set-1565615244-1" class="tab-selector-2" />
- <label for="tab-1565615244-2" class="tab-label-2">groovy</label>
+ <input id="tab-1570661298-1" type="radio" name="radio-set-1570661298-1" class="tab-selector-1" checked="checked" />
+ <label for="tab-1570661298-1" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1570661298-2" type="radio" name="radio-set-1570661298-1" class="tab-selector-2" />
+ <label for="tab-1570661298-2" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -3530,10 +3530,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-1565615244-3" type="radio" name="radio-set-1565615244-3" class="tab-selector-1" checked="checked" />
- <label for="tab-1565615244-3" class="tab-label-1">console (groovy)</label>
- <input id="tab-1565615244-4" type="radio" name="radio-set-1565615244-3" class="tab-selector-2" />
- <label for="tab-1565615244-4" class="tab-label-2">groovy</label>
+ <input id="tab-1570661298-3" type="radio" name="radio-set-1570661298-3" class="tab-selector-1" checked="checked" />
+ <label for="tab-1570661298-3" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1570661298-4" type="radio" name="radio-set-1570661298-3" class="tab-selector-2" />
+ <label for="tab-1570661298-4" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -3582,10 +3582,10 @@ be created with the same properties and
follows:</p>
</div>
<section class="tabs tabs-2">
- <input id="tab-1565615304-1" type="radio" name="radio-set-1565615304-1" class="tab-selector-1" checked="checked" />
- <label for="tab-1565615304-1" class="tab-label-1">console (groovy)</label>
- <input id="tab-1565615304-2" type="radio" name="radio-set-1565615304-1" class="tab-selector-2" />
- <label for="tab-1565615304-2" class="tab-label-2">groovy</label>
+ <input id="tab-1570661340-1" type="radio" name="radio-set-1570661340-1" class="tab-selector-1" checked="checked" />
+ <label for="tab-1570661340-1" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1570661340-2" type="radio" name="radio-set-1570661340-1" class="tab-selector-2" />
+ <label for="tab-1570661340-2" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -3593,9 +3593,9 @@ follows:</p>
<pre class="CodeRay highlight"><code data-lang="groovy">gremlin> g.V().has(<span class="string"><span class="delimiter">'</span><span class="content">name</span><span class="delimiter">'</span></span>,<span class="string"><span class="delimiter">'</span><span class="content">marko</span><span class="delimiter">'</span></span>).
outE().inV().
path().by(<span class="string"><span class="delimiter">'</span><span class="content">name</span><span class="delimiter">'</span></span>).by(valueMap(<span class="predefined-constant">true</span>))
-==>[marko,[<span class="key">id</span>:<span class="integer">9</span>,<span class="key">weight</span>:<span class="float">0.4</span>,<span class="key">label</span>:created],lop]
-==>[marko,[<span class="key">id</span>:<span class="integer">7</span>,<span class="key">weight</span>:<span class="float">0.5</span>,<span class="key">label</span>:knows],vadas]
-==>[marko,[<span class="key">id</span>:<span class="integer">8</span>,<span class="key">weight</span>:<span class="float">1.0</span>,<span class="key">label</span>:knows],josh]</code></pre>
+==>[marko,[<span class="key">weight</span>:<span class="float">0.4</span>,<span class="key">label</span>:created,<span class="key">id</span>:<span class="integer">9</span>],lop]
+==>[marko,[<span class="key">weight</span>:<span class="float">0.5</span>,<span class="key">label</span>:knows,<span class="key">id</span>:<span class="integer">7</span>],vadas]
+==>[marko,[<span class="key">weight</span>:<span class="float">1.0</span>,<span class="key">label</span>:knows,<span class="key">id</span>:<span class="integer">8</span>],josh]</code></pre>
</div>
</div>
</div>
@@ -3617,10 +3617,10 @@ follows:</p>
the "peter" vertex in a single traversal:</p>
</div>
<section class="tabs tabs-2">
- <input id="tab-1565615304-3" type="radio" name="radio-set-1565615304-3" class="tab-selector-1" checked="checked" />
- <label for="tab-1565615304-3" class="tab-label-1">console (groovy)</label>
- <input id="tab-1565615304-4" type="radio" name="radio-set-1565615304-3" class="tab-selector-2" />
- <label for="tab-1565615304-4" class="tab-label-2">groovy</label>
+ <input id="tab-1570661340-3" type="radio" name="radio-set-1570661340-3" class="tab-selector-1" checked="checked" />
+ <label for="tab-1570661340-3" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1570661340-4" type="radio" name="radio-set-1570661340-3" class="tab-selector-2" />
+ <label for="tab-1570661340-4" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -3637,9 +3637,9 @@ the "peter" vertex in a single traversal
gremlin> g.V().has(<span class="string"><span class="delimiter">'</span><span class="content">name</span><span class="delimiter">'</span></span>,<span class="string"><span class="delimiter">'</span><span class="content">marko</span><span class="delimiter">'</span></span>).
outE().inV().
path().by(<span class="string"><span class="delimiter">'</span><span class="content">name</span><span class="delimiter">'</span></span>).by(valueMap(<span class="predefined-constant">true</span>))
-==>[marko,[<span class="key">id</span>:<span class="integer">9</span>,<span class="key">weight</span>:<span class="float">0.4</span>,<span class="key">label</span>:created],lop]
-==>[marko,[<span class="key">id</span>:<span class="integer">8</span>,<span class="key">weight</span>:<span class="float">1.0</span>,<span class="key">label</span>:knows],josh]
-==>[marko,[<span class="key">id</span>:<span class="integer">13</span>,<span class="key">weight</span>:<span class="float">0.5</span>,<span class="key">label</span>:knows],peter]</code></pre>
+==>[marko,[<span class="key">weight</span>:<span class="float">0.4</span>,<span class="key">label</span>:created,<span class="key">id</span>:<span class="integer">9</span>],lop]
+==>[marko,[<span class="key">weight</span>:<span class="float">1.0</span>,<span class="key">label</span>:knows,<span class="key">id</span>:<span class="integer">8</span>],josh]
+==>[marko,[<span class="key">weight</span>:<span class="float">0.5</span>,<span class="key">label</span>:knows,<span class="key">id</span>:<span class="integer">13</span>],peter]</code></pre>
</div>
</div>
</div>
@@ -3691,10 +3691,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-1565615364-1" type="radio" name="radio-set-1565615364-1" class="tab-selector-1" checked="checked" />
- <label for="tab-1565615364-1" class="tab-label-1">console (groovy)</label>
- <input id="tab-1565615364-2" type="radio" name="radio-set-1565615364-1" class="tab-selector-2" />
- <label for="tab-1565615364-2" class="tab-label-2">groovy</label>
+ <input id="tab-1570661385-1" type="radio" name="radio-set-1570661385-1" class="tab-selector-1" checked="checked" />
+ <label for="tab-1570661385-1" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1570661385-2" type="radio" name="radio-set-1570661385-1" class="tab-selector-2" />
+ <label for="tab-1570661385-2" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -3725,10 +3725,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-1565615364-3" type="radio" name="radio-set-1565615364-3" class="tab-selector-1" checked="checked" />
- <label for="tab-1565615364-3" class="tab-label-1">console (groovy)</label>
- <input id="tab-1565615364-4" type="radio" name="radio-set-1565615364-3" class="tab-selector-2" />
- <label for="tab-1565615364-4" class="tab-label-2">groovy</label>
+ <input id="tab-1570661385-3" type="radio" name="radio-set-1570661385-3" class="tab-selector-1" checked="checked" />
+ <label for="tab-1570661385-3" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1570661385-4" type="radio" name="radio-set-1570661385-3" class="tab-selector-2" />
+ <label for="tab-1570661385-4" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -3783,10 +3783,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-1565615364-5" type="radio" name="radio-set-1565615364-5" class="tab-selector-1" checked="checked" />
- <label for="tab-1565615364-5" class="tab-label-1">console (groovy)</label>
- <input id="tab-1565615364-6" type="radio" name="radio-set-1565615364-5" class="tab-selector-2" />
- <label for="tab-1565615364-6" class="tab-label-2">groovy</label>
+ <input id="tab-1570661385-5" type="radio" name="radio-set-1570661385-5" class="tab-selector-1" checked="checked" />
+ <label for="tab-1570661385-5" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1570661385-6" type="radio" name="radio-set-1570661385-5" class="tab-selector-2" />
+ <label for="tab-1570661385-6" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -3848,10 +3848,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-1565615364-7" type="radio" name="radio-set-1565615364-7" class="tab-selector-1" checked="checked" />
- <label for="tab-1565615364-7" class="tab-label-1">console (groovy)</label>
- <input id="tab-1565615364-8" type="radio" name="radio-set-1565615364-7" class="tab-selector-2" />
- <label for="tab-1565615364-8" class="tab-label-2">groovy</label>
+ <input id="tab-1570661385-7" type="radio" name="radio-set-1570661385-7" class="tab-selector-1" checked="checked" />
+ <label for="tab-1570661385-7" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1570661385-8" type="radio" name="radio-set-1570661385-7" class="tab-selector-2" />
+ <label for="tab-1570661385-8" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -3892,10 +3892,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-1565615465-1" type="radio" name="radio-set-1565615465-1" class="tab-selector-1" checked="checked" />
- <label for="tab-1565615465-1" class="tab-label-1">console (groovy)</label>
- <input id="tab-1565615465-2" type="radio" name="radio-set-1565615465-1" class="tab-selector-2" />
- <label for="tab-1565615465-2" class="tab-label-2">groovy</label>
+ <input id="tab-1570661460-1" type="radio" name="radio-set-1570661460-1" class="tab-selector-1" checked="checked" />
+ <label for="tab-1570661460-1" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1570661460-2" type="radio" name="radio-set-1570661460-1" class="tab-selector-2" />
+ <label for="tab-1570661460-2" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -3923,10 +3923,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-1565615465-3" type="radio" name="radio-set-1565615465-3" class="tab-selector-1" checked="checked" />
- <label for="tab-1565615465-3" class="tab-label-1">console (groovy)</label>
- <input id="tab-1565615465-4" type="radio" name="radio-set-1565615465-3" class="tab-selector-2" />
- <label for="tab-1565615465-4" class="tab-label-2">groovy</label>
+ <input id="tab-1570661460-3" type="radio" name="radio-set-1570661460-3" class="tab-selector-1" checked="checked" />
+ <label for="tab-1570661460-3" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1570661460-4" type="radio" name="radio-set-1570661460-3" class="tab-selector-2" />
+ <label for="tab-1570661460-4" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -3978,10 +3978,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-1565615465-5" type="radio" name="radio-set-1565615465-5" class="tab-selector-1" checked="checked" />
- <label for="tab-1565615465-5" class="tab-label-1">console (groovy)</label>
- <input id="tab-1565615465-6" type="radio" name="radio-set-1565615465-5" class="tab-selector-2" />
- <label for="tab-1565615465-6" class="tab-label-2">groovy</label>
+ <input id="tab-1570661460-5" type="radio" name="radio-set-1570661460-5" class="tab-selector-1" checked="checked" />
+ <label for="tab-1570661460-5" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1570661460-6" type="radio" name="radio-set-1570661460-5" class="tab-selector-2" />
+ <label for="tab-1570661460-6" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -4030,10 +4030,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-1565615545-1" type="radio" name="radio-set-1565615545-1" class="tab-selector-1" checked="checked" />
- <label for="tab-1565615545-1" class="tab-label-1">console (groovy)</label>
- <input id="tab-1565615545-2" type="radio" name="radio-set-1565615545-1" class="tab-selector-2" />
- <label for="tab-1565615545-2" class="tab-label-2">groovy</label>
+ <input id="tab-1570661519-1" type="radio" name="radio-set-1570661519-1" class="tab-selector-1" checked="checked" />
+ <label for="tab-1570661519-1" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1570661519-2" type="radio" name="radio-set-1570661519-1" class="tab-selector-2" />
+ <label for="tab-1570661519-2" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -4099,10 +4099,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-1565615545-3" type="radio" name="radio-set-1565615545-3" class="tab-selector-1" checked="checked" />
- <label for="tab-1565615545-3" class="tab-label-1">console (groovy)</label>
- <input id="tab-1565615545-4" type="radio" name="radio-set-1565615545-3" class="tab-selector-2" />
- <label for="tab-1565615545-4" class="tab-label-2">groovy</label>
+ <input id="tab-1570661519-3" type="radio" name="radio-set-1570661519-3" class="tab-selector-1" checked="checked" />
+ <label for="tab-1570661519-3" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1570661519-4" type="radio" name="radio-set-1570661519-3" class="tab-selector-2" />
+ <label for="tab-1570661519-4" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -4152,10 +4152,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-1565615545-5" type="radio" name="radio-set-1565615545-5" class="tab-selector-1" checked="checked" />
- <label for="tab-1565615545-5" class="tab-label-1">console (groovy)</label>
- <input id="tab-1565615545-6" type="radio" name="radio-set-1565615545-5" class="tab-selector-2" />
- <label for="tab-1565615545-6" class="tab-label-2">groovy</label>
+ <input id="tab-1570661519-5" type="radio" name="radio-set-1570661519-5" class="tab-selector-1" checked="checked" />
+ <label for="tab-1570661519-5" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1570661519-6" type="radio" name="radio-set-1570661519-5" class="tab-selector-2" />
+ <label for="tab-1570661519-6" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -4219,10 +4219,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-1565615637-1" type="radio" name="radio-set-1565615637-1" class="tab-selector-1" checked="checked" />
- <label for="tab-1565615637-1" class="tab-label-1">console (groovy)</label>
- <input id="tab-1565615637-2" type="radio" name="radio-set-1565615637-1" class="tab-selector-2" />
- <label for="tab-1565615637-2" class="tab-label-2">groovy</label>
+ <input id="tab-1570661585-1" type="radio" name="radio-set-1570661585-1" class="tab-selector-1" checked="checked" />
+ <label for="tab-1570661585-1" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1570661585-2" type="radio" name="radio-set-1570661585-1" class="tab-selector-2" />
+ <label for="tab-1570661585-2" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -4300,10 +4300,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-1565615637-3" type="radio" name="radio-set-1565615637-3" class="tab-selector-1" checked="checked" />
- <label for="tab-1565615637-3" class="tab-label-1">console (groovy)</label>
- <input id="tab-1565615637-4" type="radio" name="radio-set-1565615637-3" class="tab-selector-2" />
- <label for="tab-1565615637-4" class="tab-label-2">groovy</label>
+ <input id="tab-1570661585-3" type="radio" name="radio-set-1570661585-3" class="tab-selector-1" checked="checked" />
+ <label for="tab-1570661585-3" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1570661585-4" type="radio" name="radio-set-1570661585-3" class="tab-selector-2" />
+ <label for="tab-1570661585-4" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -4340,10 +4340,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-1565615637-5" type="radio" name="radio-set-1565615637-5" class="tab-selector-1" checked="checked" />
- <label for="tab-1565615637-5" class="tab-label-1">console (groovy)</label>
- <input id="tab-1565615637-6" type="radio" name="radio-set-1565615637-5" class="tab-selector-2" />
- <label for="tab-1565615637-6" class="tab-label-2">groovy</label>
+ <input id="tab-1570661585-5" type="radio" name="radio-set-1570661585-5" class="tab-selector-1" checked="checked" />
+ <label for="tab-1570661585-5" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1570661585-6" type="radio" name="radio-set-1570661585-5" class="tab-selector-2" />
+ <label for="tab-1570661585-6" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -4373,10 +4373,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-1565615637-7" type="radio" name="radio-set-1565615637-7" class="tab-selector-1" checked="checked" />
- <label for="tab-1565615637-7" class="tab-label-1">console (groovy)</label>
- <input id="tab-1565615637-8" type="radio" name="radio-set-1565615637-7" class="tab-selector-2" />
- <label for="tab-1565615637-8" class="tab-label-2">groovy</label>
+ <input id="tab-1570661585-7" type="radio" name="radio-set-1570661585-7" class="tab-selector-1" checked="checked" />
+ <label for="tab-1570661585-7" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1570661585-8" type="radio" name="radio-set-1570661585-7" class="tab-selector-2" />
+ <label for="tab-1570661585-8" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -4417,10 +4417,10 @@ interest is in what individuals other th
they bought:</p>
</div>
<section class="tabs tabs-2">
- <input id="tab-1565615637-9" type="radio" name="radio-set-1565615637-9" class="tab-selector-1" checked="checked" />
- <label for="tab-1565615637-9" class="tab-label-1">console (groovy)</label>
- <input id="tab-1565615637-10" type="radio" name="radio-set-1565615637-9" class="tab-selector-2" />
- <label for="tab-1565615637-10" class="tab-label-2">groovy</label>
+ <input id="tab-1570661585-9" type="radio" name="radio-set-1570661585-9" class="tab-selector-1" checked="checked" />
+ <label for="tab-1570661585-9" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1570661585-10" type="radio" name="radio-set-1570661585-9" class="tab-selector-2" />
+ <label for="tab-1570661585-10" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -4467,10 +4467,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-1565615637-11" type="radio" name="radio-set-1565615637-11" class="tab-selector-1" checked="checked" />
- <label for="tab-1565615637-11" class="tab-label-1">console (groovy)</label>
- <input id="tab-1565615637-12" type="radio" name="radio-set-1565615637-11" class="tab-selector-2" />
- <label for="tab-1565615637-12" class="tab-label-2">groovy</label>
+ <input id="tab-1570661585-11" type="radio" name="radio-set-1570661585-11" class="tab-selector-1" checked="checked" />
+ <label for="tab-1570661585-11" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1570661585-12" type="radio" name="radio-set-1570661585-11" class="tab-selector-2" />
+ <label for="tab-1570661585-12" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -4511,10 +4511,10 @@ that she already owns. Those products sh
purposes) to form a ranking:</p>
</div>
<section class="tabs tabs-2">
- <input id="tab-1565615637-13" type="radio" name="radio-set-1565615637-13" class="tab-selector-1" checked="checked" />
- <label for="tab-1565615637-13" class="tab-label-1">console (groovy)</label>
- <input id="tab-1565615637-14" type="radio" name="radio-set-1565615637-13" class="tab-selector-2" />
- <label for="tab-1565615637-14" class="tab-label-2">groovy</label>
+ <input id="tab-1570661585-13" type="radio" name="radio-set-1570661585-13" class="tab-selector-1" checked="checked" />
+ <label for="tab-1570661585-13" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1570661585-14" type="radio" name="radio-set-1570661585-13" class="tab-selector-2" />
+ <label for="tab-1570661585-14" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -4577,10 +4577,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-1565615637-15" type="radio" name="radio-set-1565615637-15" class="tab-selector-1" checked="checked" />
- <label for="tab-1565615637-15" class="tab-label-1">console (groovy)</label>
- <input id="tab-1565615637-16" type="radio" name="radio-set-1565615637-15" class="tab-selector-2" />
- <label for="tab-1565615637-16" class="tab-label-2">groovy</label>
+ <input id="tab-1570661585-15" type="radio" name="radio-set-1570661585-15" class="tab-selector-1" checked="checked" />
+ <label for="tab-1570661585-15" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1570661585-16" type="radio" name="radio-set-1570661585-15" class="tab-selector-2" />
+ <label for="tab-1570661585-16" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -4612,10 +4612,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-1565615637-17" type="radio" name="radio-set-1565615637-17" class="tab-selector-1" checked="checked" />
- <label for="tab-1565615637-17" class="tab-label-1">console (groovy)</label>
- <input id="tab-1565615637-18" type="radio" name="radio-set-1565615637-17" class="tab-selector-2" />
- <label for="tab-1565615637-18" class="tab-label-2">groovy</label>
+ <input id="tab-1570661585-17" type="radio" name="radio-set-1570661585-17" class="tab-selector-1" checked="checked" />
+ <label for="tab-1570661585-17" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1570661585-18" type="radio" name="radio-set-1570661585-17" class="tab-selector-2" />
+ <label for="tab-1570661585-18" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -4651,10 +4651,10 @@ who have at least one product in common:
that maximum:</p>
</div>
<section class="tabs tabs-2">
- <input id="tab-1565615637-19" type="radio" name="radio-set-1565615637-19" class="tab-selector-1" checked="checked" />
- <label for="tab-1565615637-19" class="tab-label-1">console (groovy)</label>
- <input id="tab-1565615637-20" type="radio" name="radio-set-1565615637-19" class="tab-selector-2" />
- <label for="tab-1565615637-20" class="tab-label-2">groovy</label>
+ <input id="tab-1570661585-19" type="radio" name="radio-set-1570661585-19" class="tab-selector-1" checked="checked" />
+ <label for="tab-1570661585-19" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1570661585-20" type="radio" name="radio-set-1570661585-19" class="tab-selector-2" />
+ <label for="tab-1570661585-20" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -4696,10 +4696,10 @@ that maximum:</p>
common:</p>
</div>
<section class="tabs tabs-2">
- <input id="tab-1565615637-21" type="radio" name="radio-set-1565615637-21" class="tab-selector-1" checked="checked" />
- <label for="tab-1565615637-21" class="tab-label-1">console (groovy)</label>
- <input id="tab-1565615637-22" type="radio" name="radio-set-1565615637-21" class="tab-selector-2" />
- <label for="tab-1565615637-22" class="tab-label-2">groovy</label>
+ <input id="tab-1570661585-21" type="radio" name="radio-set-1570661585-21" class="tab-selector-1" checked="checked" />
+ <label for="tab-1570661585-21" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1570661585-22" type="radio" name="radio-set-1570661585-21" class="tab-selector-2" />
+ <label for="tab-1570661585-22" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -4746,10 +4746,10 @@ common:</p>
purchased:</p>
</div>
<section class="tabs tabs-2">
- <input id="tab-1565615637-23" type="radio" name="radio-set-1565615637-23" class="tab-selector-1" checked="checked" />
- <label for="tab-1565615637-23" class="tab-label-1">console (groovy)</label>
- <input id="tab-1565615637-24" type="radio" name="radio-set-1565615637-23" class="tab-selector-2" />
- <label for="tab-1565615637-24" class="tab-label-2">groovy</label>
+ <input id="tab-1570661585-23" type="radio" name="radio-set-1570661585-23" class="tab-selector-1" checked="checked" />
+ <label for="tab-1570661585-23" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1570661585-24" type="radio" name="radio-set-1570661585-23" class="tab-selector-2" />
+ <label for="tab-1570661585-24" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -4799,10 +4799,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-1565615637-25" type="radio" name="radio-set-1565615637-25" class="tab-selector-1" checked="checked" />
- <label for="tab-1565615637-25" class="tab-label-1">console (groovy)</label>
- <input id="tab-1565615637-26" type="radio" name="radio-set-1565615637-25" class="tab-selector-2" />
- <label for="tab-1565615637-26" class="tab-label-2">groovy</label>
+ <input id="tab-1570661585-25" type="radio" name="radio-set-1570661585-25" class="tab-selector-1" checked="checked" />
+ <label for="tab-1570661585-25" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1570661585-26" type="radio" name="radio-set-1570661585-25" class="tab-selector-2" />
+ <label for="tab-1570661585-26" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -4862,10 +4862,10 @@ purchased:</p>
recommendation algorithm:</p>
</div>
<section class="tabs tabs-2">
- <input id="tab-1565615637-27" type="radio" name="radio-set-1565615637-27" class="tab-selector-1" checked="checked" />
- <label for="tab-1565615637-27" class="tab-label-1">console (groovy)</label>
- <input id="tab-1565615637-28" type="radio" name="radio-set-1565615637-27" class="tab-selector-2" />
- <label for="tab-1565615637-28" class="tab-label-2">groovy</label>
+ <input id="tab-1570661585-27" type="radio" name="radio-set-1570661585-27" class="tab-selector-1" checked="checked" />
+ <label for="tab-1570661585-27" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1570661585-28" type="radio" name="radio-set-1570661585-27" class="tab-selector-2" />
+ <label for="tab-1570661585-28" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -4912,10 +4912,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-1565615637-29" type="radio" name="radio-set-1565615637-29" class="tab-selector-1" checked="checked" />
- <label for="tab-1565615637-29" class="tab-label-1">console (groovy)</label>
- <input id="tab-1565615637-30" type="radio" name="radio-set-1565615637-29" class="tab-selector-2" />
- <label for="tab-1565615637-30" class="tab-label-2">groovy</label>
+ <input id="tab-1570661585-29" type="radio" name="radio-set-1570661585-29" class="tab-selector-1" checked="checked" />
+ <label for="tab-1570661585-29" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1570661585-30" type="radio" name="radio-set-1570661585-29" class="tab-selector-2" />
+ <label for="tab-1570661585-30" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -4969,10 +4969,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-1565615846-1" type="radio" name="radio-set-1565615846-1" class="tab-selector-1" checked="checked" />
- <label for="tab-1565615846-1" class="tab-label-1">console (groovy)</label>
- <input id="tab-1565615846-2" type="radio" name="radio-set-1565615846-1" class="tab-selector-2" />
- <label for="tab-1565615846-2" class="tab-label-2">groovy</label>
+ <input id="tab-1570661789-1" type="radio" name="radio-set-1570661789-1" class="tab-selector-1" checked="checked" />
+ <label for="tab-1570661789-1" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1570661789-2" type="radio" name="radio-set-1570661789-1" class="tab-selector-2" />
+ <label for="tab-1570661789-2" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -5046,10 +5046,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-1565615846-3" type="radio" name="radio-set-1565615846-3" class="tab-selector-1" checked="checked" />
- <label for="tab-1565615846-3" class="tab-label-1">console (groovy)</label>
- <input id="tab-1565615846-4" type="radio" name="radio-set-1565615846-3" class="tab-selector-2" />
- <label for="tab-1565615846-4" class="tab-label-2">groovy</label>
+ <input id="tab-1570661789-3" type="radio" name="radio-set-1570661789-3" class="tab-selector-1" checked="checked" />
+ <label for="tab-1570661789-3" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1570661789-4" type="radio" name="radio-set-1570661789-3" class="tab-selector-2" />
+ <label for="tab-1570661789-4" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -5152,10 +5152,10 @@ structure.</p>
in the modern toy graph.</p>
</div>
<section class="tabs tabs-2">
- <input id="tab-1565615846-5" type="radio" name="radio-set-1565615846-5" class="tab-selector-1" checked="checked" />
- <label for="tab-1565615846-5" class="tab-label-1">console (groovy)</label>
- <input id="tab-1565615846-6" type="radio" name="radio-set-1565615846-5" class="tab-selector-2" />
- <label for="tab-1565615846-6" class="tab-label-2">groovy</label>
+ <input id="tab-1570661789-5" type="radio" name="radio-set-1570661789-5" class="tab-selector-1" checked="checked" />
+ <label for="tab-1570661789-5" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1570661789-6" type="radio" name="radio-set-1570661789-5" class="tab-selector-2" />
+ <label for="tab-1570661789-6" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -5276,10 +5276,10 @@ in the modern toy graph.</p>
arguments.</p>
</div>
<section class="tabs tabs-2">
- <input id="tab-1565615925-1" type="radio" name="radio-set-1565615925-1" class="tab-selector-1" checked="checked" />
- <label for="tab-1565615925-1" class="tab-label-1">console (groovy)</label>
- <input id="tab-1565615925-2" type="radio" name="radio-set-1565615925-1" class="tab-selector-2" />
- <label for="tab-1565615925-2" class="tab-label-2">groovy</label>
+ <input id="tab-1570661868-1" type="radio" name="radio-set-1570661868-1" class="tab-selector-1" checked="checked" />
+ <label for="tab-1570661868-1" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1570661868-2" type="radio" name="radio-set-1570661868-1" class="tab-selector-2" />
+ <label for="tab-1570661868-2" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -5308,10 +5308,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-1565615925-3" type="radio" name="radio-set-1565615925-3" class="tab-selector-1" checked="checked" />
- <label for="tab-1565615925-3" class="tab-label-1">console (groovy)</label>
- <input id="tab-1565615925-4" type="radio" name="radio-set-1565615925-3" class="tab-selector-2" />
- <label for="tab-1565615925-4" class="tab-label-2">groovy</label>
+ <input id="tab-1570661868-3" type="radio" name="radio-set-1570661868-3" class="tab-selector-1" checked="checked" />
+ <label for="tab-1570661868-3" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1570661868-4" type="radio" name="radio-set-1570661868-3" class="tab-selector-2" />
+ <label for="tab-1570661868-4" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -5342,10 +5342,10 @@ filter the people he knows. In this way
itself.</p>
</div>
<section class="tabs tabs-2">
- <input id="tab-1565615925-5" type="radio" name="radio-set-1565615925-5" class="tab-selector-1" checked="checked" />
- <label for="tab-1565615925-5" class="tab-label-1">console (groovy)</label>
- <input id="tab-1565615925-6" type="radio" name="radio-set-1565615925-5" class="tab-selector-2" />
- <label for="tab-1565615925-6" class="tab-label-2">groovy</label>
+ <input id="tab-1570661868-5" type="radio" name="radio-set-1570661868-5" class="tab-selector-1" checked="checked" />
+ <label for="tab-1570661868-5" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1570661868-6" type="radio" name="radio-set-1570661868-5" class="tab-selector-2" />
+ <label for="tab-1570661868-6" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -5396,10 +5396,10 @@ contained people, their friendship relat
<p><span class="image"><img src="../images/traversal-induced-values-3.png" alt="traversal induced values 3" width="600"></span></p>
</div>
<section class="tabs tabs-2">
- <input id="tab-1565615925-7" type="radio" name="radio-set-1565615925-7" class="tab-selector-1" checked="checked" />
- <label for="tab-1565615925-7" class="tab-label-1">console (groovy)</label>
- <input id="tab-1565615925-8" type="radio" name="radio-set-1565615925-7" class="tab-selector-2" />
- <label for="tab-1565615925-8" class="tab-label-2">groovy</label>
+ <input id="tab-1570661868-7" type="radio" name="radio-set-1570661868-7" class="tab-selector-1" checked="checked" />
+ <label for="tab-1570661868-7" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1570661868-8" type="radio" name="radio-set-1570661868-7" class="tab-selector-2" />
+ <label for="tab-1570661868-8" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -5445,10 +5445,10 @@ contained people, their friendship relat
<p>Getting a list of all the movies that Alice’s friends like could be done like this:</p>
</div>
<section class="tabs tabs-2">
- <input id="tab-1565615925-9" type="radio" name="radio-set-1565615925-9" class="tab-selector-1" checked="checked" />
- <label for="tab-1565615925-9" class="tab-label-1">console (groovy)</label>
- <input id="tab-1565615925-10" type="radio" name="radio-set-1565615925-9" class="tab-selector-2" />
- <label for="tab-1565615925-10" class="tab-label-2">groovy</label>
+ <input id="tab-1570661868-9" type="radio" name="radio-set-1570661868-9" class="tab-selector-1" checked="checked" />
+ <label for="tab-1570661868-9" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1570661868-10" type="radio" name="radio-set-1570661868-9" class="tab-selector-2" />
+ <label for="tab-1570661868-10" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
@@ -5477,10 +5477,10 @@ contained people, their friendship relat
mean filtering out "the wild bunch" and "unforgiven".</p>
</div>
<section class="tabs tabs-2">
- <input id="tab-1565615925-11" type="radio" name="radio-set-1565615925-11" class="tab-selector-1" checked="checked" />
- <label for="tab-1565615925-11" class="tab-label-1">console (groovy)</label>
- <input id="tab-1565615925-12" type="radio" name="radio-set-1565615925-11" class="tab-selector-2" />
- <label for="tab-1565615925-12" class="tab-label-2">groovy</label>
+ <input id="tab-1570661868-11" type="radio" name="radio-set-1570661868-11" class="tab-selector-1" checked="checked" />
+ <label for="tab-1570661868-11" class="tab-label-1">console (groovy)</label>
+ <input id="tab-1570661868-12" type="radio" name="radio-set-1570661868-11" class="tab-selector-2" />
+ <label for="tab-1570661868-12" class="tab-label-2">groovy</label>
<div class="tabcontent">
<div class="tabcontent-1">
<div class="listingblock">
[... 978 lines stripped ...]