Hello, I have basic knowledge about prolog and I am facing problems in writing the prolog code for the following problem: Write the fact about the above figure and write the following prolog rule: pos_path.
Sample run of the rule:
?- pos_path(n1, nx, L).
L = [n1,n3,n7,nx] ? ;
L = [n1,n3,n4,n5,nx] ? ;
L = [n1,n3,n4,n6,nx] ? ;
no