public function edges($collection, $vertexHandle, $direction = 'any', array $options = [])
    {
        $collection = $this->makeCollection($collection);

        $params   = [
            self::OPTION_VERTEX    => $vertexHandle,
            self::OPTION_DIRECTION => $direction
        ];
        $url      = UrlHelper::appendParamsUrl(Urls::URL_EDGES . '/' . urlencode($collection), $params);
        $response = $this->getConnection()->get($url);
        
        if ($batchPart = $response->getBatchPart()) {
            return $batchPart;
        }

        $options['_isNew'] = false;
        $json              = $response->getJson();
        $edges             = [];
        foreach ($json[self::ENTRY_EDGES] as $data) {
            $edges[] = $this->createFromArrayWithContext($data, $options);
        }

        return $edges;
    }
public function edges($collection, $vertexHandle, $direction = 'any', array $options = [])
    {
        $collection = $this->makeCollection($collection);

        $params   = [
            self::OPTION_VERTEX    => $vertexHandle,
            self::OPTION_DIRECTION => $direction
        ];
        $url      = UrlHelper::appendParamsUrl(Urls::URL_EDGES . '/' . urlencode($collection), $params);
        $response = $this->getConnection()->get($url);
        
        if ($batchPart = $response->getBatchPart()) {
            return $batchPart;
        }

        $options['_isNew'] = false;
        $json              = $response->getJson();
        $edges             = [];
        foreach ($json[self::ENTRY_EDGES] as $data) {
            $edges[] = $this->createFromArrayWithContext($data, $options);
        }

        return $edges;
    }
public function edges ( $ collection , $ vertexHandle , $ direction = 'any' , array $ options = [ ] ) { $ collection = $ this -> makeCollection ( $ collection ) ; $ params = [ self :: OPTION_VERTEX => $ vertexHandle , self :: OPTION_DIRECTION => $ direction ] ; $ url = UrlHelper :: appendParamsUrl ( Urls :: URL_EDGES . '/' . urlencode ( $ collection ) , $ params ) ; $ response = $ this -> getConnection ( ) -> get ( $ url ) ; if ( $ batchPart = $ response -> getBatchPart ( ) ) { return $ batchPart ; } $ options [ '_isNew' ] = false ; $ json = $ response -> getJson ( ) ; $ edges = [ ] ; foreach ( $ json [ self :: ENTRY_EDGES ] as $ data ) { $ edges [ ] = $ this -> createFromArrayWithContext ( $ data , $ options ) ; } return $ edges ; }
Get connected edges for a given vertex

@throws Exception

@param mixed  $collection     - edge-collection id as string or number
@param mixed  $vertexHandle   - the vertex involved
@param string $direction      - optional defaults to 'any'. Other possible Values 'in' & 'out'
@param array  $options        - optional, array of options
<p>Options are :
<li>'_includeInternals' - true to include the internal attributes. Defaults to false</li>
<li>'_ignoreHiddenAttributes' - true to show hidden attributes. Defaults to false</li>
</p>

@return array - array of connected edges
@since 1.0
Get connected edges for a given vertex