apoc
apoc copied to clipboard
Procedure apoc.neighbors.tohop is broken
Issue by kubaizak
Monday Mar 30, 2020 at 18:41 GMT
Originally opened as https://github.com/neo4j-contrib/neo4j-apoc-procedures/issues/1467
Guidelines
I executed procedure from the title on the graph given in the following example and when distance parameter is higher that 1 it returns strange result, including starting node.
Expected Behavior (Mandatory)
{name: "Mark"}, {name: "Joe"}
Actual Behavior (Mandatory)
{name: "Mark"}, {name: "Praveena"}
How to Reproduce the Problem
MATCH (p:Person {name: "Praveena"}) CALL apoc.neighbors.tohop(p, "FOLLOWS>", 2) YIELD node RETURN node
Simple Dataset (where it's possibile)
MERGE (mark:Person {name: "Mark"}) MERGE (praveena:Person {name: "Praveena"}) MERGE (joe:Person {name: "Joe"}) MERGE (lju:Person {name: "Lju"}) MERGE (michael:Person {name: "Michael"}) MERGE (emil:Person {name: "Emil"}) MERGE (ryan:Person {name: "Ryan"})
MERGE (ryan)-[:FOLLOWS]->(joe) MERGE (joe)-[:FOLLOWS]->(mark) MERGE (mark)-[:FOLLOWS]->(emil) MERGE (michael)-[:KNOWS]-(emil) MERGE (michael)-[:KNOWS]-(lju) MERGE (michael)-[:KNOWS]-(praveena) MERGE (emil)-[:FOLLOWS]->(joe) MERGE (praveena)-[:FOLLOWS]->(joe)
Steps (Mandatory)
Screenshots (where it's possibile)
Specifications (Mandatory)
Currently used versions
Versions
- OS: 10.15.4
- Neo4j: 4.0.3
- Neo4j-Apoc: