Prolog - How can I modify this clause to be able to print it in-depth first search DFS?

前端 未结 0 1225
情歌与酒
情歌与酒 2020-12-17 09:54

I was wondering how to modify the clause recorrido/2 to print it in depth first search, I have this so far:

\'\'\'

recorrido(X,Z):- arco(X,Z), print(Z).

相关标签:
回答
  • 消灭零回复
提交回复
热议问题