Hi all, I am new to this and wondered has any experience using groovy to translate stuff that works in the gremlin shell, I wanted to know how to parse the results of the following gremlin code back in java , when I run in gremlin, I get an a set of weights and the corresponding paths traversed, when i look at this, I just get the set of linked pipes, does loop resolve in groovy, cannot use the pipeline.fill() to return a list, thanks
public static List findAllPaths(Vertex s, Vertex e){
//Set<Vertex> m;
String targetName = e.getProperty("firstName");
System.out.println("in findAllPaths start vertex name" + (String) s.getProperty("firstName"));
System.out.println("in findAllPaths end vertex name" + (String) e.getProperty("firstName"));
def results = []
results = s.outE.inV.loop(2){it.object.firstName!=targetName && it.loops < 6}.path.filter{it.last().firstName==targetName}.transform{[it.findAll{it instanceof Edge}.sum{it.weight}, it]};
}