Created
July 17, 2014 15:01
-
-
Save okram/0cb66fc9c2c35eef5f1f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GREMLIN 3 | |
gremlin> g.v(1).as('x').out.jump('x'){println it.loops + " " + it.get();it.loops < 4} | |
1 v[3] | |
1 v[2] | |
1 v[4] | |
2 v[5] | |
2 v[3] | |
GREMLIN 2 | |
gremlin> g.v(1).as('x').out.loop('x'){println it.loops + " " + it.object;it.loops < 4} | |
2 v[2] | |
2 v[4] | |
2 v[3] | |
3 v[5] | |
3 v[3] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment