Last active
September 21, 2021 12:42
-
-
Save spmallette/e6906f152c1c2ced5de4eadaa3e47667 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> g = traversal().withRemote(DriverRemoteConnection.using("localhost",8182,"g")) | |
==>graphtraversalsource[emptygraph[empty], standard] | |
gremlin> t = g.V().filter(bothE('knows')).map(bothE("knows").order().by('weight',desc).limit(1));[] | |
gremlin> t.clone() | |
==>e[8][1-knows->4] | |
==>e[8][1-knows->4] | |
==>e[7][1-knows->2] | |
gremlin> t.clone() | |
==>e[8][1-knows->4] | |
==>e[8][1-knows->4] | |
==>e[7][1-knows->2] | |
gremlin> t | |
==>e[8][1-knows->4] | |
==>e[8][1-knows->4] | |
==>e[7][1-knows->2] | |
gremlin> t | |
gremlin> t.clone() | |
gremlin> gl = TinkerFactory.createModern().traversal() | |
==>graphtraversalsource[tinkergraph[vertices:6 edges:6], standard] | |
gremlin> tl = gl.V().filter(bothE('knows')).map(bothE("knows").order().by('weight',desc).limit(1));[] | |
gremlin> tl.clone() | |
==>e[8][1-knows->4] | |
==>e[7][1-knows->2] | |
==>e[8][1-knows->4] | |
gremlin> tl.clone() | |
==>e[8][1-knows->4] | |
==>e[7][1-knows->2] | |
==>e[8][1-knows->4] | |
gremlin> tl | |
==>e[8][1-knows->4] | |
==>e[7][1-knows->2] | |
==>e[8][1-knows->4] | |
gremlin> tl | |
gremlin> tl.clone() | |
==>e[8][1-knows->4] | |
==>e[7][1-knows->2] | |
==>e[8][1-knows->4] |
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> t.clone().V() | |
The traversal strategies are complete and the traversal can no longer be modulated | |
Type ':help' or ':h' for help. | |
Display stack trace? [yN]n | |
gremlin> tl.clone().V() | |
The traversal strategies are complete and the traversal can no longer be modulated | |
Type ':help' or ':h' for help. | |
Display stack trace? [yN]n |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment