I am new to neo4j and I have a following relationship like this
A is a friend of B
A is a friend of E
B is a friend of C
C is a friend of D
C is a friend of F
E is a friend of G
G is a friend of H
I want a result of A's friends' friends where A is not currently a friend by ordering the numbers of friends by DESC.The expecting result is
C ---> 2
D ---> 1
F ---> 1
G ---> 1
H ---> 1
A,B,C,D,E,F,G,H are nodes and they are connected with a relationship of [:friends]. It would be much grateful if anyone can give a solution for this.
2
forC
and1
for the other people? – cybersam