The below code is not giving the correct result, am I doing something wrong..?
OrientGraph graph = factory.getTx();
for (OrientVertex v : (Iterable<OrientVertex>) graph.command(
new OCommandSQL("SELECT dijkstra(#97:1334, #97:1335, 'calculated_length') FROM STRUCTURE")).execute()) {
System.out.println("Path " + (ORID)v.getId());
}
When I execute the query directly, I am getting correct result. Thanks.