Hello,

in Java you can try this code to launch your query with traverse option:

public class Traverse {

public static void main(String[] args) {
OServerAdmin connection;
try {
connection = new OServerAdmin("remote:db_host/db_name").connect("root", 
"root");
if (connection.existsDatabase()) {
OrientGraph g = new OrientGraph("remote:db_host/db_name");
Iterable<Vertex> result  = g.command(new OCommandSQL("traverse * from 
#12:0")).execute();

g.shutdown();
}
}catch (IOException e){
e.printStackTrace();
}
}

}


Il giorno giovedì 26 maggio 2016 14:14:55 UTC+2, eswar reddy ha scritto:
>
>
> <https://lh3.googleusercontent.com/-iCR4LKVCDhg/V0bofXDUeyI/AAAAAAAAAEU/yBhhsv1sPIc8YO8ihgVKrmX1jEg3zDqmgCLcB/s1600/edges.png>
> Hi
> I have vertex connection that vertex containing multiple edges .
> how can I retrieve all in and out  relations. how can I get  above pic 
>  using java code 
>

-- 

--- 
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