I have a normal node-link graph
For the purpose of getting all links, I want to get the node which is related on x max depth. But the query below returned incorrect result (64 out of 81). But the max depth between them is just like 7. Where did I go wrong?
FOR v IN 0..14 ANY "Entity/41591987" EntityRelation
OPTIONS {uniqueVertices: "global"} return v
Edit 1: Adding the option of bfs: true seemed to solve the problem, but I do not understand why.
Edit 2: My full query is
//get all the vertices related to this one id
FOR v IN 0..9 ANY "EntityProd/58868489" EntityRelationProd
OPTIONS {uniqueVertices: "global",bfs:true}
//from each of above results, get the incoming and outgoing edges
FOR vv, c IN ANY v EntityRelationProd RETURN c
The point is that I already got the correct results to get all vertices. Why would the "uniqueVertices: global" affect my second part? Or do I have to re-specify the OPTIONS?