Files
rose-ash/lib
giles cf634ad2b1
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Failing after 37s
datalog: shortest-path demo on weighted DAG (176/176)
dl-demo-shortest-path-rules: path enumerates X→Z with cost
W = sum of edge weights via is/+; shortest filters to the
minimum cost path per (X, Y) pair via min aggregation.

3 demo tests cover direct/multi-hop choice, multi-hop wins on
cheaper route, and unreachable-empty.

Note: cycles produce infinite distance values without a depth
filter; the rule docstring flags this and suggests adding
(<, D, MAX) for graphs that may cycle.
2026-05-08 09:35:38 +00:00
..