Skip to content

neighbor algorithm cannot find nodes over 2 hops #432

Open
@reggiehsu111

Description

@reggiehsu111

Memgraph version
2.12.1

Environment
memgraph running on docker

Describe the bug
I created a very simple graph that looks like this:
Screenshot 2023-12-07 at 6 38 58 PM
When running this query to find neighbors of Paper_id nodes:
"MATCH (p:Paper_id {id: "710.4637"})
CALL neighbors.at_hop(p, ["connected"], 1) YIELD nodes
RETURN nodes;"
I'm able to get the correct results.
Screenshot 2023-12-07 at 6 40 12 PM

However, when I try to get nodes that are 2 hops away, there was nothing returned.
If I use the results I found from the first hop, I'm able to get the results, this means that the edges are correctly created, yet I can't retrieve the results.

The "connected" relations are created using my csv files:
LOAD CSV FROM "/usr/work_space/data/csvs/author_edges.csv" WITH HEADER AS row
CREATE (n1:Paper_id {id: row.paper_id})-[:connected]->(n2:Author {id: row.author});

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions