Neo4j - Cypher return 1 to 1 relationships
问题 Using neo4j 1.9.2, I'm trying to find all nodes in my graph that have a one to one relationship to another node. Let's say I have persons in my graph and I would like to find all persons, that have exactly one friend (since 2013), and this one friend only has the other person as friend and no one else. As a return, I would like to have all these pairs of "isolated" friends. I tried the following: START n=node(*) MATCH n-[r:is_friend]-m-[s:is_friend]-n WHERE r.since >= 2013 and s.since >= 2013