I have a question. I have a continuous undirected graph. So and I need a code in Prolog which give me a complementary graph.
for example graph:
edge(1,2).
edge(2,3).
edge(3,4).
edge(4,5).
edge(5,1).
rot(X,Y):- edge(X,Y).
rot(X,Y):- edge(Y,X).
Please, help :) thanks.