public function getGraphInfo($name)
    {
        $graphHandler = $this->_toolbox->getGraphHandler();

        $graph = $graphHandler->getGraph($name);

        if(!$graph){
            throw new GraphManagerException("Graph does not exist");
        }

        $result = array();

        $result['id'] = $graph->getKey();
        $result['name'] = $graph->getKey();
        $result['revision'] = $graph->getRevision();
        $result['verticesCollection'] = $graph->getVerticesCollection();
        $result['edgesCollection'] = $graph->getEdgesCollection();

        return $result;

    }
public function getGraphInfo($name)
    {
        $graphHandler = $this->_toolbox->getGraphHandler();

        $graph = $graphHandler->getGraph($name);

        if(!$graph){
            throw new GraphManagerException("Graph does not exist");
        }

        $result = array();

        $result['id'] = $graph->getKey();
        $result['name'] = $graph->getKey();
        $result['revision'] = $graph->getRevision();
        $result['verticesCollection'] = $graph->getVerticesCollection();
        $result['edgesCollection'] = $graph->getEdgesCollection();

        return $result;

    }
public function getGraphInfo ( $ name ) { $ graphHandler = $ this -> _toolbox -> getGraphHandler ( ) ; $ graph = $ graphHandler -> getGraph ( $ name ) ; if ( ! $ graph ) { throw new GraphManagerException ( "Graph does not exist" ) ; } $ result = array ( ) ; $ result [ 'id' ] = $ graph -> getKey ( ) ; $ result [ 'name' ] = $ graph -> getKey ( ) ; $ result [ 'revision' ] = $ graph -> getRevision ( ) ; $ result [ 'verticesCollection' ] = $ graph -> getVerticesCollection ( ) ; $ result [ 'edgesCollection' ] = $ graph -> getEdgesCollection ( ) ; return $ result ; }
Get information about a graph.
@param  string                $name The name of the graph.
@throws GraphManagerException
@return array
Get information about a graph .