Skip to content

Instantly share code, notes, and snippets.

@okram
Created March 19, 2014 19:38
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/9649584 to your computer and use it in GitHub Desktop.
Save okram/9649584 to your computer and use it in GitHub Desktop.
g.V().match("a", "b",
as("a").out("knows").has("name", "josh"),
as("a").out("created").has("name", "lop"),
as("a").out("created").as("b"),
as("b").has("lang", "java"),
as("b").in("created").out("created").has("name", "ripple"))
.value("name").path().forEach(System.out::println);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment