Test if bounded path lengths get correct results #67
Labels
bug
Something isn't working
path-finding
Issues related to path-finding, such as the path mode or path prefix.
The way bounded paths are currently checked is with a post-op filter:
iterativelength(0, (select count(*) from Person), a.rowid, b.rowid) between 2 and 3
In this case, if the shortest path length is found to be between 2 and 3 hops, it evaluates to true. However, there might be cases in the graph where the shortest path is 1 (a), and a path with length 2 or 3 (b) does exist. In this case, that result (b) should then be returned to the user. However, since the shortest path was found to be 1, and is below the lower bound, it is left out.
The goal of this issue is to verify that this is indeed the case. This can be done by creating a toy graph example with this case present.
If it does exist, we should probably push the bound filter to the UDF, to ensure the paths with proper length are correctly evaluated.
The text was updated successfully, but these errors were encountered: