Skip to content

Instantly share code, notes, and snippets.

@okram
Created January 30, 2014 15:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save okram/8711493 to your computer and use it in GitHub Desktop.
Save okram/8711493 to your computer and use it in GitHub Desktop.
@Test
public void testUnion() {
Graph g = TinkerFactory.createClassic();
Gremlin.of(g).v(1).union(
Gremlin.of().out("knows"),
Gremlin.of().out("created").in("created")
).value("name").forEach(System.out::println);
}
//////
vadas
josh
josh
peter
marko
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment