Oh, I didn't see this:
"(use twitter example: my followees' followers)"
Then the query I provided in the previous email:
g.v(1).out('livesIn').sideEffect{city =
it}.back(2).out.out.filter{it.out('livesIn').next().equals(city)}.groupCount(age){it.age}.groupCount(gender){it.gender}
would now be:
g.v(1).out('livesIn').sideEffect{city =
it}.back(2).in('follows').in('follows').filter{it.out('livesIn').next().equals(city)}.groupCount(age){it.age}.groupCount(gender){it.gender}
as in('follows') is someone's followees (i.e. the people that follow me).
Enjoy,
Marko.
http://markorodriguez.com
_______________________________________________
Neo4j mailing list
[email protected]
https://lists.neo4j.org/mailman/listinfo/user