1% define reachability 2reaches(X,Y) :- query(X,_), edge(X,Y). 3reaches(X,Y) :- reaches(X,Z), edge(Z,Y). 4 5% require query to be satisfied, otherwise no AS is given 6:- query(X,Y), not reaches(X,Y).
Attached Files
You are not allowed to attach a file to this page.