Graphics Reference
In-Depth Information
tufteBook.in('review').dedup().out().dedup().count()
==>124365
Clearly, something unusual is going on here. The count of products linked
through reviews is more than 100,000, a fifth of the entire product catalog.
Use the transform function to stop the pipeline earlier, and write out the
number of reviews that each customer has made.
gremlin> tufteBook.in('review').dedup().transform
{it.outE.count()}
==>164
==>2
==>86
==>1
==>176
==>203
==>327
==>9
==>1
==>140
==>22
==>1
==>15
==>6
==>10
==>42
==>13
==>1
==>945065
==>1
==>21
==>5
==>2
==>1
==>51
==>185
==>1
Search WWH ::




Custom Search