Prolog. Construct a transitive closure of a graph

后端 未结 0 1924
[愿得一人]
[愿得一人] 2020-11-30 01:16

I\'m very new to Prolog. I have such a graph:

edge(a,e).
edge(e,f).
edge(f,d).
edge(d,a).

I define a transitive closure as:

p(         


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