Hi, Please don't use 2.0-SNAPSHOT, but 1.7-rc2-SNAPSHOT. Then you could do:
traverse $depth, out() from #10:0 If you start from #10:0 as root node. Lvc@ On 27 February 2014 14:00, Lebnik <[email protected]> wrote: > Hi, > > OrientDB Server v2.0-SNAPSHOT (build 1) > > I have next data: > > orientdb {cities}> select from V > > > ----+-----+----+----+------+-------+--------+--------- > # |@RID |out_|in_ |city |name |in_Loves|out_Loves > > > ----+-----+----+----+------+-------+--------+--------- > 0 |#9:0 |[3] |[2] |Rome |null |null |null > 1 |#9:1 |[2] |[2] |London|null |null |null > 2 |#9:2 |[2] |[2] |Berlin|null |null |null > 3 |#9:3 |[2] |[2] |Madrid|null |null |null > 4 |#9:4 |[2] |[3] |Paris |null |null |null > > > ----+-----+----+----+------+-------+--------+--------- > > > orientdb {cities}> select from E > > ----+------+--------+----+---- > # |@RID |distance|out |in > > ----+------+--------+----+---- > 0 |#10:0 |1106 |#9:0|#9:4 > 1 |#10:1 |1106 |#9:4|#9:0 > 2 |#10:2 |1054 |#9:4|#9:3 > 3 |#10:3 |1054 |#9:3|#9:4 > 4 |#10:4 |1267 |#9:3|#9:1 > 5 |#10:5 |1267 |#9:1|#9:3 > 6 |#10:6 |930 |#9:1|#9:2 > 7 |#10:7 |930 |#9:2|#9:1 > 8 |#10:8 |1183 |#9:2|#9:0 > 9 |#10:9 |1183 |#9:0|#9:2 > > ----+------+--------+----+----+------ > > > > I need to get tree with a depth on three. Please help me with select. > > -- > > --- > 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. > -- --- 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.
