Skip to content

Instantly share code, notes, and snippets.

@buggtb
Created January 17, 2018 15:33
Show Gist options
  • Save buggtb/68e58c93f0a50f822fcfe53acefaeac5 to your computer and use it in GitHub Desktop.
Save buggtb/68e58c93f0a50f822fcfe53acefaeac5 to your computer and use it in GitHub Desktop.
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