So the filter took results a filtered out all path where all types are not cdp. But this is not correct result. If you look on my graph example picture, all vertices (except one lab54unl85H179) are reachable via edges with type cdp. If I tried to change uniqueness from global to path OPTIONS { 'uniqueVertices': 'path', 'uniqueEdges': 'path'} then I got correct result but with duplicit vertices.
Execution plan:
Id NodeType Est. Comment
1 SingletonNode 1 * ROOT
2 EnumerateCollectionNode 1487 - FOR d IN vDevice /* full collection scan */
3 CalculationNode 1487 - LET #6 = (d.`hostname` == "lab54unl85AC172") /* simple expression */ /* collections used: d : vDevice */
4 FilterNode 1487 - FILTER #6
5 TraversalNode 1 - FOR v /* vertex */, p /* paths */ IN 1..10000 /* min..maxPathDepth */ ANY d /* startnode */ GRAPH 'linkGraph'
6 CalculationNode 1 - LET #8 = (p.`edges`[*].`type` all == "cdp") /* simple expression */
7 FilterNode 1 - FILTER #8
8 CalculationNode 1 - LET #10 = v.`hostname` /* attribute expression */
9 ReturnNode 1 - RETURN #10