Additional note: if I execute

 System.out.println(doc.countEdges(Direction.OUT, "has"));

It prints the right number of edges. Could it be a bug on getEdges() method?



On Wednesday, February 5, 2014 2:22:55 PM UTC, Fabrizio Fortino wrote:
>
> Hi guys,
>
> I have a graph database with Vertices and Edges. When I try to execute the 
> following code:
>
> graph.command(
>   new OSQLAsynchQuery<Vertex>("select from MyVertex", new 
> OCommandResultListener() {
>     public boolean result(Object iRecord) {
>       Vertex doc = graph.getVertex(iRecord);
>       System.out.println("V " + doc);
>       for (Edge e : doc.getEdges(Direction.BOTH)) {
>         System.out.println("E " + e);
>       }
>       return true;
>     }
>     
>     public void end() {
>     // TODO Auto-generated method stub
>     }
>  })).execute();
>
>
> I cannot see any edge printed. Any idea?
>
> Thanks,
> Fabrizio
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to