I answered myself:

LET a = (FOR v IN 1..1 INBOUND 'user/user.1' GRAPH 'fan' 
    OPTIONS {bfs: true, uniqueVertices: 'global', uniqueEdges: 'global'}
RETURN v)
LET b = (FOR v IN 1..1 OUTBOUND 'user/user.1' GRAPH 'fan' 
    OPTIONS {bfs: true, uniqueVertices: 'global', uniqueEdges: 'global'}
RETURN v)
RETURN LENGTH(INTERSECTION(a, b))



On Friday, October 7, 2016 at 2:09:26 PM UTC-4, Allen Zhao wrote:
>
> Hi there,
>
> Is there a way to find bi-connected neighbors of a vertex.
>
> E.g.:
>
> In a social network, I want to find a person A's friend:
>
> A is fan of person B
> and
> B is fan of person A
>
> I tried some AQL queries, but always get syntax error.
>
> Thanks a lot,
>
> Allen
>

-- 
You received this message because you are subscribed to the Google Groups 
"ArangoDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to