Minor formatting in graph coloring example
This commit is contained in:
parent
40ddee8444
commit
cc3c9b642c
@ -3,7 +3,8 @@
|
|||||||
#external vertex(1).
|
#external vertex(1).
|
||||||
#show color/2.
|
#show color/2.
|
||||||
|
|
||||||
{color(V,C)} :- vertex(V), color(C).
|
{color(V, C)} :- vertex(V), color(C).
|
||||||
covered(V) :- color(V, _).
|
covered(V) :- color(V, _).
|
||||||
:- vertex(V), not covered(V).
|
:- vertex(V), not covered(V).
|
||||||
:- color(V1,C), color(V2,C), edge(V1,V2).
|
:- color(V1, C), color(V2, C), edge(V1, V2).
|
||||||
|
:- color(V, C1), color(V, C2), C1 != C2.
|
||||||
|
Loading…
Reference in New Issue
Block a user