I need to check if a path is valid, true or false. It's given like this:
?-path(a,b,[(a,c),(c,d),(d,b)]).
true
In the list part, how do I access the a or c in (a,c)? Is it like a string"(a,c)"?
And in general how would one solve this type of path finding? Sample code/pseudo is appreciated. Is there a way to make it interpret the tuples () in the list as predicates?