Blame view

code/asp/drafts/gcE01.lp 266 Bytes
3e0f9b8a   Francisco Coelho   back to work?
1
2
3
4
5
6
7
8
9
col(r ; g ; b).

% var C is local in this rule.
% More specificlly, it is bound to the (lhs) cardinality contraint.
% Also, it varies over all instantiations of col(C).
1 { color(X, C) : col(C) } 1 :- node(X).
:- edge(X, Y), color(X, C), color(Y, C).

#show color/2.