Do not get all paths when using unique vertices of global
Author: antjw001Created Aug 5, 2026Updated Aug 5, 2026
I want to traverse a graph from a single start node and return all edges and nodes from that point.
FOR v,e,p IN 0..100 OUTBOUND ${node} GRAPH 'Model' OPTIONS { order: 'bfs', uniqueVertices: 'global', uniqueEdges: 'none' } RETURN {node:v, edge:e}`)
The problem is that where a node has multiple incoming edges, only one of them is returned in the query because of the uniqueVertices setting.
If I use uniqueVertices equal to path it continues past that node repeating all subsequent nodes and edges for each path (returning too many results).
If there was an option for uniqueEdges = global it could be used with uniqueVertices = path but that is not an option.
How can I return those final edges going into a single vertice?
Source: arangodb/arangodb