Hi,

could you please try:

> START id_my=(11) MATCH (id_my)-[:KNOWS]->(f)-[:KNOWS]->(fof) RETURN fof
for distinct results please use "distinct"
> START id_my=(11) MATCH (id_my)-[:KNOWS]->(f)-[:KNOWS]->(fof) RETURN distinct 
> fof


I don't know what the "<-[:KNOWS]->(id_o)-[:KNOWS]->" stands for?

What is the ordering of your "prioritzation"?

For indexes, please look at 
(http://docs.neo4j.org/chunked/snapshot/indexing.html).



Cheers

Michael


Am 12.07.2011 um 14:26 schrieb Nami Zarringhalam:

> Hi guys,
> 
> I have a few questions about getting started with neo4j.
> 
> We have a graph with 4 ppl owning 5 phone numbers (some own 1 some own 2 and
> others 3).
> 
> 
> 
> 1.       When trying to get a list: friends of friends (that are not my own
> friends), I write the following query, however my own friends still show up
> and some entries are duplicates. 
> 
> START id_my=(11) MATCH
> (id_my)-[:KNOWS]->(f)<-[:KNOWS]->(id_o)-[:KNOWS]->(fof) WHERE
> NOT(f.number=fof.number) RETURN f
> 
> 
> 
> a.       How do I remove my own friends from the returning subset?
> 
> b.      How do I remove the duplicates in the returning array?
> 
> c.       How do I make sure they are prioritized in the right order? (maybe
> connected to the b. question)
> 
> 
> 
> 2.       Are there any resources where I can read more about how to use
> indexes?
> 
> I mean very practical examples of how they are set up and used.
> 
> 
> 
> Thank you guys!
> 
> 
> 
> Best Regards
> 
> Nami Zarringhalam
> 
> CEO
> 
> 
> 
> E-mail:  <mailto:[email protected]>
> [email protected]
> 
> URL:  <http://www.truecaller.com/> www.truecaller.com
> 
> Phone: +46(0)73 - 669 39 89
> 
> Skype: nami.zarringhalam
> 
> ---------------------------------
> 
> TrueCaller, a global phonebook, in the palm of your hand!
> 
> Download for free at truecaller.com from your cellphone today!
> 
> ---------------------------------
> 
> This email and any attachments are the property of True Software Scandinavia
> AB.  It is intended only for the person or entity to which it is addressed
> and may contain information which is confidential, privileged or otherwise
> protected from disclosure.  Distribution or copying of this email or the
> information contained herein by anyone other than the intended recipient is
> prohibited.  If you have received this email in error, please immediately
> notify the sender by email at  <mailto:[email protected]>
> [email protected] and please delete and destroy any copies of
> this email and its attachments, if any.
> 
> 
> 
> _______________________________________________
> Neo4j mailing list
> [email protected]
> https://lists.neo4j.org/mailman/listinfo/user

_______________________________________________
Neo4j mailing list
[email protected]
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to