Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Procedure apoc.neighbors.tohop is broken #1467

Closed
kubaizak opened this issue Mar 30, 2020 · 1 comment
Closed

Procedure apoc.neighbors.tohop is broken #1467

kubaizak opened this issue Mar 30, 2020 · 1 comment

Comments

@kubaizak
Copy link

kubaizak commented Mar 30, 2020

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:
@vga91
Copy link
Collaborator

vga91 commented May 18, 2021

@kubaizak
I was unable to replicate the problem, the procedure returns (p:Person {name: "Mark"}) and (p:Person {name: "Joe"}).
Can you try with the latest APOC version?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants