Advertisement
Guest User

FRANCOIS ET THOMAS

a guest
May 21st, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. posectr([],Lp,Lc).
  2. posectr([[P1,P2]|R],Lp,Lc):-
  3. unectr(P1,P2,Lp,Lc),
  4. posectr(R,Lp,Lc).
  5.  
  6. unectr(P1,P2,Lp,Lc):-
  7. nth0(I,Lp,P1),
  8. nth0(I,Lc,C1),
  9. nth0(J,Lp,P2),
  10. nth0(J,Lc,C2),
  11. C1#\=C2.
  12.  
  13. coloration():-
  14. Lpays=[all,hol,bel,lux,fra,sui,aut,tch,esp,ita],
  15. Lcolor=[ALL,HOL,BEL,LUX,FRA,SUI,AUT,TCH,ESP,ITA],
  16. Lcolor ins 1..4,
  17. findall([P1,P2], frontiere(P1,P2), L),
  18. posectr(L, Lpays, Lcolor),
  19. labeling([],Lcolor).
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement