Hi, Giulia
Thanx for your help.
this query resolve my problem, which couldn't be possible with out your help


Iterable<Vertex> vertexchain = graph
                .command( new OSQLSynchQuery<Vertex>(
                                "select name, $depth, id from (traverse * 
from (select from Person where name= 'AA') while $depth<=5)")).execute();


Bye,
Arpit


On Thursday, July 16, 2015 at 6:11:25 PM UTC+5:30, Arpit Jain wrote:
>
> Hello,  
>    My requirement is to fetch all vertices at a certain depth.
>  suppose vertex A is connected with B and C
> and B is connected with D and E 
> and E is connected with F and G adn follows...
> if i want to get all vertices of A to a certain depth (say 3 ), what 
> should i do?
> Using Java APi
>
>

-- 

--- 
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/d/optout.

Reply via email to