Skip to content

Instantly share code, notes, and snippets.

@ssullivan
Created December 27, 2019 03:33
Show Gist options
  • Select an option

  • Save ssullivan/e6a9942a7fc40f1bf1e95b040c3d8082 to your computer and use it in GitHub Desktop.

Select an option

Save ssullivan/e6a9942a7fc40f1bf1e95b040c3d8082 to your computer and use it in GitHub Desktop.
Gremlin
g.E()
.Union<IDictionary<object, object>>(__
.Project<object>("e", "v", "IN", "OUT")
.By(__.Id())
.By(__.ValueMap<object, object>(true))
.By(__.InV().Union<object>(__.Id(), __.Label()).Fold())
.By(__.OutV().Union<object>(__.Id(), __.Label()).Fold()))
.ToList()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment