$_relation
$_relation : string
The name of the edge collection for this relation.
Value object representing an edge Definition.
An edge definition contains a collection called 'relation' to store the edges and multiple vertices collection defined in 'fromCollections' and 'toCollections'.
__construct(string $relation, array $fromCollections, array $toCollections) : \triagens\ArangoDb\EdgeDefinition
Constructs an new edge definition
string | $relation |
|
array | $fromCollections |
|
array | $toCollections |
|
createUndirectedRelation(string $relation, array $vertexCollections) : \triagens\ArangoDb\EdgeDefinition
Constructs an undirected relation. This relation is an edge definition where the edges can start and end in any vertex from the collection list.
string | $relation |
|
array | $vertexCollections |
|
createDirectedRelation(string $relation, array $fromCollections, array $toCollections) : \triagens\ArangoDb\EdgeDefinition
Constructs a directed relation. This relation is an edge definition where the edges can start only in the vertices defined in 'fromCollections' and end in vertices defined in 'toCollections'.
string | $relation |
|
array | $fromCollections |
|
array | $toCollections |
|