I want to modify some property for all vertices connected via edges with some label in JanusGraph using Gremlin in Java. I tried the following:
public void setAllProperties(JanusGraphTransaction janusGraphTransaction) {
GraphTraversal<Vertex, Vertex> traversal = janusGraphTransaction.traversal().V();
traversal.has("SomeLabel", "SomeProperty", 0)
.repeat(out("SomeEdgeLabel"))
.property("SomeProperty", true)
.until(outE("SomeEdgeLabel").count().is(0));
}
But no vertices are modified. I tried googling for modifying properties while traversing using repeat... until but without any success. Any suggestions?