Hey,

That will probably give you unwanted behavior as aggregate is a greedy step. If 
you just want to lazily store and not aggregate then:

  Gremlin 1.3:   sideEffect{x.add(it)}
  Gremlin 1.4:   store(x)

HTH,
Marko.

http://markorodriguez.com

On Dec 3, 2011, at 8:50 PM, Romiko Derbynew <romiko.derby...@readify.net> wrote:

> Sorry, forgot to complete question. So I use a 
> x=[];g.v(0).out.copySplit(_().out.aggregate(x), 
> _().out).fairMerge().out.retain(x). I guess this is not possible, where a 
> retain clause is used after a fairMerge()?
> 
> -----Original Message-----
> From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org] On 
> Behalf Of Romiko Derbynew
> Sent: Sunday, 4 December 2011 2:38 PM
> To: Neo4j user discussions (user@lists.neo4j.org)
> Subject: [Neo4j] Aggregates inside copySplit()
> 
> Hi,
> 
> Is it possible to use aggregates within a copySplit pipe?
> _______________________________________________
> Neo4j mailing list
> User@lists.neo4j.org
> https://lists.neo4j.org/mailman/listinfo/user
> 
> 
> _______________________________________________
> Neo4j mailing list
> User@lists.neo4j.org
> https://lists.neo4j.org/mailman/listinfo/user
_______________________________________________
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to