May I know how to do in gremlin queries please
Error is
{
“errors”: [
{
“reason”: “Bad request”,
“code”: 400,
“content”: "Error on evaluation of the script library. Error: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:\r\nScript8.groovy: 6: unexpected token: : @ line 6, column 29.\r\n g.V(g.V().has(‘PT’, ‘TrxID’,:id).next()).both().both().both().cyclicPath().path()\r\n ^\r\n\r\n1 error\r\n\nScript library was:\ndef AccLabels() {\ng.V().hasLabel(‘Account’) \n}\n\ndef CyclePaths(id) {\ng.V(g.V().has(‘PT’, ‘TrxID’,:id).next()).both().both().both().cyclicPath().path()\n}\n\ndef Labels() {\ng.V().label()\n}\n\ndef Betweeness_on_Trans() {\ng.V(g.V().has(‘PT’,‘TrxID’,‘T7’).next()).repeat(.bothE().subgraph(‘subGraph’).bothV()).times(3).cap(‘subGraph’).next().traversal().V().as(“v”).repeat(both().simplePath().as(“v”)).emit().filter(project(“x”,“y”,“z”).by(select(first, “v”)).by(select(last, “v”)).by(select(all, “v”).count(local)).as(“triple”).coalesce(select(“x”, “y”).as(“a”).select(“triples”).unfold().as(“t”).select(“x”,“y”).where(eq(“a”)).select(“t”),store(“triples”)).select(“z”).as(“length”).select(“triple”).select(“z”).where(eq(“length”))).select(all, “v”).unfold().groupCount().next()\n}\n\ndef Closeness_on_Trans() {\ng.V(g.V().has(‘PT’,‘TrxID’,‘T7’).next()).repeat(.bothE().subgraph(‘subGraph’).bothV()).times(3).cap(‘subGraph’).next().traversal().withSack(1f).V().as(“v”).repeat(both().simplePath().as(“v”)).emit().filter(project(“x”,“y”, “z”).by(select(first, “v”)).by(select(last, “v”)).by(select(all, “v”).count(local)).as(“triple”).coalesce(select(“x”, “y”).as(“a”).select(“triples”).unfold().as(“t”).select(“x”,“y”).where(eq(“a”)).select(“t”),store(“triples”)).select(“z”).as(“length”).select(“triple”).select(“z”).where(eq(“length”))).group().by(select(first,“v”)).by(select(all, “v”).count(local).sack(div).sack().sum()).next()\n}\n\n\r\n\tDB name=“Test1"”
}
]
}