Skip to content

Instantly share code, notes, and snippets.

@okram
Created February 5, 2014 18:28
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/8830081 to your computer and use it in GitHub Desktop.
Save okram/8830081 to your computer and use it in GitHub Desktop.
public <A extends Gremlin<?, Vertex>> A V() {
Gremlin gremlin = new DefaultGremlin<Object, Vertex>();
gremlin.addStarts(new HolderIterator<>(this.vertices.values().iterator()));
return (A) gremlin;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment