extractVertexIDs.php
Table of Contents
Functions
- extractVertexIDs() : array<string|int, mixed>
- Extract unique vertex IDs from a list of edge documents.
Functions
extractVertexIDs()
Extract unique vertex IDs from a list of edge documents.
extractVertexIDs(array<string|int, mixed> $edges, string $side) : array<string|int, mixed>
This helper function is used to extract either the "_from" or "_to" vertex IDs from an array of edge documents (objects or arrays) and return only the unique IDs.
Parameters
- $edges : array<string|int, mixed>
-
Array of edge objects or associative arrays containing
_fromand_to. - $side : string
-
The side to extract, either
Schema::_FROMorSchema::_TO.
Tags
Return values
array<string|int, mixed> —Unique list of vertex IDs.