Closed aiden-huffman closed 1 year ago
Hello, Thank you for the bug report! However, I am failing to reproduce your problem completly. The input graph consists of 6 nodes and 9 relationships.
First when visualizing the filted query in Neo4j browser, I could reproduce the issue.
This is due to the Connect result nodes
setting, which you want to uncheck in your case (https://neo4j.com/docs/browser-manual/current/operations/browser-settings/).
However, with your project query, the projected graph inside GDS correctly filters out the one relationship and results in 6 nodes and 8 relationships.
You can also check with gds.graph.degree.stream('filteredGraph')
.
For the example you linked, could you clarify what you executed to verify your result?
Seems there was something wrong in the database on my end. We recently reset the database to reinitialize everything and the issue appears to be resolved. Thank you for taking a look.
Describe the bug Filtering before gds.graph.project doesn't work as expected
To Reproduce
We would like to avoid roads with construction when calculating shortest paths.
Despite the table not containing the edge with construction, the Graph visualisation does.
The GDS projection also keeps the edge and will return the same result as the example here
GDS version: X.Y.Z Neo4j version: 5.11.0 Operating system: (Ubuntu 22.04)
Expected behavior Expect a projection of the filtered graph data, and the resulting calculation to be performed there.