Last active
September 13, 2018 03:02
-
-
Save if6was9/b8095e421a390cd78603bfdc6313f8a0 to your computer and use it in GitHub Desktop.
merge edges between vertices
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
| Edge edge = graph.traversal() | |
| .V().hasLabel("Person").has("name","Rob").as("p") | |
| .V().hasLabel("Dog").has("name","Homer").as("d") | |
| .coalesce( | |
| __.inE( "HAS" ).where(__.outV().as("p")) , | |
| __.addE("HAS").from("p")) | |
| .tryNext().get(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment