okay. I didnt know I could include those parentheses, however that function works correctly. It return yes or no if a path exists between X and Y.
What I want to create is a function that would look like
trave(X,Y,L) :- ? ?
if i told it travel(metz,losAngele, L).
it should return L =...