Your query is correct and there probably is a problem in the database. I replicated your graph structure: console.neo4j. Run START n=node(*) RETURN n
to get the ids of node 27 and 0 and then run your query. It returns exactly 3 results.
To check whether you have loops on node 0 execute:
START n=node(0) MATCH n-[r]-n RETURN r