neo4j-rstats / neo4r

A Modern and Flexible Neo4J Driver
https://neo4j-rstats.github.io/user-guide/
Other
106 stars 30 forks source link

Missing relationships from graph query #84

Closed BJWiley233 closed 3 years ago

BJWiley233 commented 3 years ago

When I run a query in Neo4j I will get for instance 14 node and 22 relationships but running that same query in neo4r gives me same correct number of nodes (14) but only gives me 13 relationships and only 15 relationships when I unnest them. Any reason for the missing relationships? Are their limitations on the relationships that won't return to R?

davidlrosenblum commented 3 years ago

There is a setting in Neo4j Browser that will connect all the nodes, even if you have not asked for that Relationship in your cypher query. That is probably what you are seeing.

You will see a Setting Icon (Gear) bottom left. All the way to the bottom is a Check Box - Connect Result Nodes. When checked, it will run secondary queries to the one you put in the query box to see if it can find any Relationships to the Labels/Nodes on the screen.

As you can see, I have it unchecked. My results would match that from a neo4r query.

David

On Nov 30, 2020, at 12:51 AM, BJWiley23 notifications@github.com wrote:

When I run a query in Neo4j I will get for instance 14 node and 22 relationships but running that same query in neo4r gives me same correct number of nodes (14) but only gives me 13 relationships and only 15 relationships when I unnest them. Any reason for the missing relationships? Are their limitations on the relationships that won't return to R?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/neo4j-rstats/neo4r/issues/84, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFBXAGAF3URGO42IBDVROI3SSMXFJANCNFSM4UHDAMXQ.

BJWiley233 commented 3 years ago

Thanks David, learning something new every day about neo4j!