Created
January 17, 2018 15:33
-
-
Save buggtb/68e58c93f0a50f822fcfe53acefaeac5 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
JanusGraphVertex ve = graph.addVertex("metadata"); | |
Iterable<JanusGraphVertex> edgeverts = graph.query().has("productid", product.getProductId()) | |
.vertices(); | |
for (JanusGraphVertex edgevert : edgeverts) { | |
ve.addEdge("contains", edgevert); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment