Menu

## EdgeDefinition
in package

EdgeDefinition.php : 12

Represents an edge definition for Graphs.

##### Tags

author

  Lucas S. Vieira

### Table of Contents

#### Methods

__construct() : mixed
  EdgeDefinition constructor.
from() : array<string|int, mixed>
  List of vertex collection names. <br> Edges in collection can only be inserted if their _from is in any of the collections here.
getCollection() : string
  Name of the edge collection.
to() : array<string|int, mixed>
  List of vertex collection names. <br> Edges in collection can only be inserted if their _to is in any of the collections here.
toArray() : array<string|int, mixed>
  Array representation of edge definition.

### Methods

#### __construct()

EdgeDefinition.php : 44

EdgeDefinition constructor.

`public __construct(string $collection, array<string|int, mixed> $from, array<string|int, mixed> $to) : mixed`

##### Parameters

$collection : string

  Edge collection name.

$from : array<string|int, mixed>

  List of vertex collection names.

$to : array<string|int, mixed>

  List of vertex collection names.

#### from()

EdgeDefinition.php : 68

List of vertex collection names. <br> Edges in collection can only be inserted if their _from is in any of the collections here.

`public from() : array<string|int, mixed>`

##### Return values

array<string|int, mixed>

#### getCollection()

EdgeDefinition.php : 78

Name of the edge collection.

`public getCollection() : string`

##### Return values

string

#### to()

EdgeDefinition.php : 57

List of vertex collection names. <br> Edges in collection can only be inserted if their _to is in any of the collections here.

`public to() : array<string|int, mixed>`

##### Return values

array<string|int, mixed>

#### toArray()

EdgeDefinition.php : 88

Array representation of edge definition.

`public toArray() : array<string|int, mixed>`

##### Return values

array<string|int, mixed>

## Search results