Prolog. How to construct a transitive closure of a graph?

前端 未结 0 1742
猫巷女王i
猫巷女王i 2020-12-02 20:15

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

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

I need to construct a transitive closure of a graph

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