Created
May 4, 2019 14:07
-
-
Save dkuppitz/f76a7699ff78af20a0147b35a8c4041f to your computer and use it in GitHub Desktop.
Don't implement path as a step
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.V().repeat(out()).emit().path() | |
| ==>[v[1],v[3]] | |
| ==>[v[1],v[2]] | |
| ==>[v[1],v[4]] | |
| ==>[v[1],v[4],v[5]] | |
| ==>[v[1],v[4],v[3]] | |
| ==>[v[4],v[5]] | |
| ==>[v[4],v[3]] | |
| ==>[v[6],v[3]] | |
| gremlin> g.withSack {[]} {it.clone()} V().sack(addAll).by(fold()).repeat(out().sack(addAll).by(fold())).emit().sack() | |
| ==>[v[1],v[3]] | |
| ==>[v[1],v[2]] | |
| ==>[v[1],v[4]] | |
| ==>[v[1],v[4],v[5]] | |
| ==>[v[1],v[4],v[3]] | |
| ==>[v[4],v[5]] | |
| ==>[v[4],v[3]] | |
| ==>[v[6],v[3]] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.