Closed quoll closed 3 years ago
Looking for transitive closures across a group of chains is not returning the ends of those chains:
(q '[:find ?x :where [?y :attribute+ ?x]] db)
The values in ?x are not including the ends of chains. i.e. each value of:
?x
(q '[:find ?x :where [_ :attribute ?x]] db)
Is not showing up in the final result set of the first query.
Develop some sample data for this, and figure out the bug. (Large scale sample data is available within the org)
Note: local system at ~/data/issue-182
Found the bug and fixed. Also noted that chained transitive edges with a fixed end are extremely slow. Applying the log(n) transitive calculation to these as well
Looking for transitive closures across a group of chains is not returning the ends of those chains:
The values in
?x
are not including the ends of chains. i.e. each value of:Is not showing up in the final result set of the first query.
Develop some sample data for this, and figure out the bug. (Large scale sample data is available within the org)