Skip to content

Instantly share code, notes, and snippets.

@okram
Last active December 23, 2015 22:39
Show Gist options
  • Save okram/6704719 to your computer and use it in GitHub Desktop.
Save okram/6704719 to your computer and use it in GitHub Desktop.
TinkerGraph g = TinkerFactory.createClassic();
ComputeResult result = g.computer().program(LambdaVertexProgram.create()
.setup(gm -> {
})
.execute((v, gm) -> {
v.setProperty("name", "marko" + gm.getIteration());
})
.terminate(gm -> gm.getIteration() > 3)
.computeKeys(VertexProgram.ofComputeKeys("name", VertexProgram.KeyType.VARIABLE))
.build())
.submit();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment