@ SuppressWarnings ( "unchecked" ) public Set < OGraphVertex > browseOutEdgesVertexes ( ) { final Set < OGraphVertex > resultset = new HashSet < OGraphVertex > ( ) ; Set < OGraphEdge > temp = out != null ? out . get ( ) : null ; if ( temp == null ) { final Set < OIdentifiable > docEdges = ( Set < OIdentifiable > ) document . field ( OGraphDatabase . VERTEX_FIELD_OUT ) ; // TRANSFORM ALL THE EDGES if ( docEdges != null ) for ( OIdentifiable d : docEdges ) { resultset . add ( ( OGraphVertex ) database . getUserObjectByRecord ( ( ODocument ) ( ( ODocument ) d . getRecord ( ) ) . field ( OGraphDatabase . EDGE_FIELD_IN ) , null ) ) ; } } else { for ( OGraphEdge edge : temp ) { resultset . add ( edge . getIn ( ) ) ; } } return resultset ; }
Returns the set of Vertexes from the outgoing edges . It avoids to unmarshall edges .