Skip to content

Instantly share code, notes, and snippets.

@okram
Last active January 3, 2016 11:59
Show Gist options
  • Save okram/8459628 to your computer and use it in GitHub Desktop.
Save okram/8459628 to your computer and use it in GitHub Desktop.
Gremlin.of(g).V().as("x").out().jump("x", o -> o.getLoops() < 2).path().forEach(System.out::println);
Gremlin.of(g).V().as("x").jump("y", o -> o.getLoops() > 1).out().jump("x").path().as("y").forEach(System.out::println);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment