Hi
I've a test cenĂ¡rio, where i want to find a common parent vertex of a group 
of vertex;

Example

Vertex :root childs=

   - Group1
      - Group 11
         - item 1 
            - group 983
               - item 983
               - item 2734
               - Group 12 
         - item 2
         - item 3
         - Group2
   - Group3



So in case i query for Item 2 and item 3, the result shall be "Group 12"
If i query for item 1,2,3, the result shall be "group 1";
if i query item 983 and 2743, the intersect shall be group 983; 



the depth between items and groups can be 1..50

the best that i did till now, was to get the depth; but this is wrong cause 
, depth is for upstream and downstream.

SELECT $depth,@rid FROM ( traverse * from (select from V where uid = 'M11' 
or uid = 'M12' or uid='M13'  ) strategy BREADTH_FIRST )  WHERE @class = 
"group" ) order by $depth 


--
Filipe

-- 

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