Created
March 5, 2024 19:41
-
-
Save spmallette/34e8c7f7c65b08dcb43b220b50bd0adb 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.V('1','2','3').aggregate('a').has(T.id,'1'). | |
repeat(out().where(P.without('a')).aggregate('a')).emit(). | |
select('a') | |
==>[v[1],v[2],v[3],v[4]] | |
==>[v[1],v[2],v[3],v[4],v[5]] | |
gremlin> g.V('1','2','3').aggregate('a').has(T.id,'1'). | |
repeat(out().where(P.without('a')).aggregate(global,'a')).emit(). | |
barrier(). | |
select('a') | |
==>[v[1],v[2],v[3],v[4],v[5]] | |
==>[v[1],v[2],v[3],v[4],v[5]] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment