Created
August 8, 2014 17:29
-
-
Save okram/821f0fcded51ec20717e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gremlin> result = g.compute().program(LambdaVertexProgram.build(). | |
gremlin> execute(new GSTriConsumer("a.property('counter', c.isInitialIteration() ? 1 : ++a.value('counter'))")). | |
gremlin> terminate(new GSPredicate('a.iteration > 9')). | |
gremlin> elementComputeKeys('counter',VARIABLE).create()).submit().get() | |
==>result[tinkergraph[vertices:6 edges:6],sideEffects[size:0]] | |
gremlin> result.graph.V.counter | |
==>10 | |
==>10 | |
==>10 | |
==>10 | |
==>10 | |
==>10 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment