edgeTraversalOptions.php
Table of Contents
Functions
- edgeTraversalOptions() : array<string|int, mixed>
- The traversal options every edge relation is walked with — breadth-first, and each vertex visited **once globally**.
Functions
edgeTraversalOptions()
The traversal options every edge relation is walked with — breadth-first, and each vertex visited **once globally**.
edgeTraversalOptions() : array<string|int, mixed>
uniqueVertices: global is not cosmetic, it decides how many rows come back. Two
shapes make a vertex reachable more than once: a diamond (a → b → d plus
a → c → d) and a plainly duplicated edge (a → c created twice). ArangoDB's
default (uniqueVertices: none) yields such a vertex once per path.
The list always passed these options; the count passed none — so the two disagreed on the same data, measured live on the shapes above:
| Declaration | List | Count, before |
|---|---|---|
| depth 1, one duplicated edge | [ b , c ] → 2 |
3 |
1..5 over the diamond |
[ b , c , d ] → 3 |
6 |
Both builders now read the options here, so a count can no longer over-count rows the list de-duplicated.
Tags
Return values
array<string|int, mixed> —The AQL::OPTIONS payload of an edge traversal.