PHP Interface Doctrine\OrientDB\Graph\GraphInterface

Datei anzeigen Open project: doctrine/orientdb-odm

Public Methods

Method Description
add ( Doctrine\OrientDB\Graph\VertexInterface $vertex ) : Doctrine\OrientDB\Graph\GraphInterface Adds a new vertex to the current graph.
getVertex ( mixed $id ) : Doctrine\OrientDB\Graph\VertexInterface Returns the vertex identified with the $id associated to this graph.
getVertices ( ) : Array Returns all the vertices that belong to this graph.

Method Details

add() public method

Adds a new vertex to the current graph.
public add ( Doctrine\OrientDB\Graph\VertexInterface $vertex ) : Doctrine\OrientDB\Graph\GraphInterface
$vertex Doctrine\OrientDB\Graph\VertexInterface
return Doctrine\OrientDB\Graph\GraphInterface

getVertex() public method

Returns the vertex identified with the $id associated to this graph.
public getVertex ( mixed $id ) : Doctrine\OrientDB\Graph\VertexInterface
$id mixed
return Doctrine\OrientDB\Graph\VertexInterface

getVertices() public method

Returns all the vertices that belong to this graph.
public getVertices ( ) : Array
return Array