With cypher you can do:

start a=(10) match a-[:FOLLOW]->b-[:FOLLOW]->a return a

where 10 can be your node Id or you can either use an index.

Cheers.

2011/9/20 iamyuanlong <yuanlong1...@gmail.com>

> hi all,
>  I have some relation like this:
>
> http://neo4j-community-discussions.438527.n3.nabble.com/file/n3352328/follow.jpg
>
> what should I do to get the users who has been B Followed and has Followed
> back to B.
> In the image the result should be (A).
>
> --
> View this message in context:
> http://neo4j-community-discussions.438527.n3.nabble.com/Neo4j-how-to-get-the-User-who-has-been-B-Followed-who-has-Followed-Back-tp3352328p3352328.html
> Sent from the Neo4j Community Discussions mailing list archive at
> Nabble.com.
> _______________________________________________
> Neo4j mailing list
> User@lists.neo4j.org
> https://lists.neo4j.org/mailman/listinfo/user
>



-- 
Adriano Almeida
Caelum | Ensino e Inovação
www.caelum.com.br
_______________________________________________
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to