Double minutesSpent = g.V()
.has("type", "Epic").in()
.has("type", P.without("Bug", "Test Cycle"))
.until(__.in("TASK_OF").count().is(0)).repeat(__.inE("TASK_OF")
.outV())
.values("timeSpent")
.sum().next();
Long issuesWorked = g.V()
.has("type", "Epic").in()
.has("type", P.without("Bug", "Test Cycle"))
.until(__.in("TASK_OF").count().is(0)).repeat(__.inE("TASK_OF")
.outV())
.count();
Long peopleInvolved = g.V()
.has("type", "Epic").in()
.has("type", P.without("Bug", "Test Cycle"))
.until(__.in("TASK_OF").count().is(0)).repeat(__.inE("TASK_OF")
.outV())
.out()
.count();
GraphTraversal<Vertex,Vertex> baseQuery = g.V()
.has("type", "Epic").in()
.has("type", P.without("Bug", "Test Cycle"))
.until(__.in("TASK_OF").count().is(0)).repeat(__.inE("TASK_OF")
.outV());
Double minutesSpent = baseQuery.values("timeSpent").sum().next();
Long issuesWorked = baseQuery.count();
Long peopleInvolved = baeQuery.out().count();--
You received this message because you are subscribed to the Google Groups "Gremlin-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/c703e0c7-7dc0-4f65-852d-319292991c32%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/0f69cae6-4995-4351-b2c5-ec2fd593dba5%40googlegroups.com.
Traversal t = graph.traversal().V().has("type", "COMPONENT");
Traversal newT = t.asAdmin().clone();
System.out.println("Count1: " + t.count().next());
System.out.println("Count2: " + newT.count().next());