Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
09-23-2019 11:57 PM
Hi,
I am given a Core User and need to match all the relationships start with Core User to other Users. Core User is also labeled with User. I have the following relationships:
I start with something like below, but it does't seem right.
Match (u:User)
Where u.id = '1234'
Match (u)-[*1..3]-(t:User)
RETURN count(t)
09-24-2019 03:32 AM
Since there are many paths from the Core user to other nodes t will have duplicates.
If you are only interested in the nodes that are 1 to 3 hops away from the Core user, you could return DISTINCT t.
Elaine
All the sessions of the conference are now available online