Skip to content

Instantly share code, notes, and snippets.

@okram
Created July 30, 2014 20:08
Show Gist options
  • Save okram/8c05e598d6b378d4b954 to your computer and use it in GitHub Desktop.
Save okram/8c05e598d6b378d4b954 to your computer and use it in GitHub Desktop.
$ bin/gremlin.sh
\,,,/
(o o)
-----oOOo-(3)-oOOo-----
plugin loaded: server
plugin loaded: gephi
plugin loaded: utilities
gremlin> g = TinkerFactory.createClassic()
==>tinkergraph[vertices:6 edges:6]
gremlin> g.V.as('a').out.as('b').out.as('c').select(['a','b'])
==>[v[1], v[4]]
==>[v[1], v[4]]
gremlin> g.V.as('a').out.as('b').out.as('c').select(['a','b']).path
==>[v[1], v[4], v[5], [v[1], v[4]]]
==>[v[1], v[4], v[3], [v[1], v[4]]]
gremlin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment