public function createGraph($name)
    {
        try {
            $graph = new \triagens\ArangoDb\Graph($name);
            $graph->setVerticesCollection($name . 'VertexCollection');
            $graph->setEdgesCollection($name . 'EdgeCollection');

            return $this->_toolbox->getGraphHandler()->createGraph($graph);

        } catch (\Exception $e) {
            $normalised = $this->_toolbox->normaliseDriverExceptions($e);
            throw new GraphManagerException($normalised['message'], $normalised['code']);
        }
    }
public function createGraph($name)
    {
        try {
            $graph = new \triagens\ArangoDb\Graph($name);
            $graph->setVerticesCollection($name . 'VertexCollection');
            $graph->setEdgesCollection($name . 'EdgeCollection');

            return $this->_toolbox->getGraphHandler()->createGraph($graph);

        } catch (\Exception $e) {
            $normalised = $this->_toolbox->normaliseDriverExceptions($e);
            throw new GraphManagerException($normalised['message'], $normalised['code']);
        }
    }
public function createGraph ( $ name ) { try { $ graph = new \ triagens \ ArangoDb \ Graph ( $ name ) ; $ graph -> setVerticesCollection ( $ name . 'VertexCollection' ) ; $ graph -> setEdgesCollection ( $ name . 'EdgeCollection' ) ; return $ this -> _toolbox -> getGraphHandler ( ) -> createGraph ( $ graph ) ; } catch ( \ Exception $ e ) { $ normalised = $ this -> _toolbox -> normaliseDriverExceptions ( $ e ) ; throw new GraphManagerException ( $ normalised [ 'message' ] , $ normalised [ 'code' ] ) ; } }
Create a graph using the current connection's settings and add it as a connection.
You do not need to set the vertex and edge collections. They are automatically named for you.
@param  string                $name The name of the graph.
@throws GraphManagerException
@return boolean
Create a graph using the current connection s settings and add it as a connection . You do not need to set the vertex and edge collections . They are automatically named for you .