private List < ODocument > getNeighborsOfModel ( String model ) { String query = String . format ( "select from Models where in.out.%s in [?]" , OGraphDatabase . LABEL ) ; List < ODocument > neighbors = graph . query ( new OSQLSynchQuery < ODocument > ( query ) , model ) ; return neighbors ; }
Returns all neighbors of a model .