in short: How to find min value in a list? (thanks for the advise kaarel)
long story:
I have created a weighted graph in amzi prolog and given 2 nodes, I am
min([Second_Last, Last], Result):- Second_Last < Last -> Result = Second_Last ; Result = Last, !. min([First, Second|Rest], Result):- First < Second -> min([First|Rest], Result) ; min([Second|Rest], Result).
Should be working.