Got it. Thanks!
Rick >> -1
A
On Thu, Nov 17, 2011 at 6:36 PM, Marko Rodriguez wrote:
>> What exactly does iterate() do?
>
> A Gremlin expression yields a Pipeline and
> Pipeline implements Iterator
>
> Thus, a Gremlin expression doesn't return the results of a traversal, only a
> lazy
> What exactly does iterate() do?
A Gremlin expression yields a Pipeline and
Pipeline implements Iterator
Thus, a Gremlin expression doesn't return the results of a traversal, only a
lazy iterator for .next()'ing results. For people doing a traversal to yield a
sideEffect (e.g. aggregat
It iterates.
Sorry, couldn't resist. ;-)
-Original Message-
From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org] On
Behalf Of Alfredas Chmieliauskas
Sent: Thursday, November 17, 2011 12:31 PM
To: Neo4j user discussions
Subject: Re: [Neo4j] Gremlin plugin and s
Thanks!
What exactly does iterate() do?
A
On Thu, Nov 17, 2011 at 4:07 PM, Marko Rodriguez wrote:
> Hey Alfredas,
>
> Be sure to iterate your pipeline
>
> x = []; g.v(1).out("from").out("to").aggregate(x).loop(3){it.loops <
> 4}.iterate(); x
>
> * NOTE: You can also do:
> g.v
Hey Alfredas,
Be sure to iterate your pipeline
x = []; g.v(1).out("from").out("to").aggregate(x).loop(3){it.loops <
4}.iterate(); x
* NOTE: You can also do:
g.v(1).out("from").out("to").aggregate(x).loop(3){it.loops < 4} >>-1
but the >> convention is no longer with us in
Dear all,
This concerns gremlin plugin and the script engine.
Maybe there's an explanation for this behavior:
1) gremlin> x = [];
g.v(1).out("from").out("to").aggregate(x).loop(3){it.loops < 4};
gremlin> x;
==> v[7]
==> v[3]
==> v[5]
2) gremlin> x = [];
g.v(1).out("from").out("to").aggregate(
6 matches
Mail list logo