Graph colouring: Difference between revisions
Content added Content deleted
m (→{{header|Phix}}: warn) |
m (→{{header|zkl}}: add missing test code) |
||
Line 986: | Line 986: | ||
println(); |
println(); |
||
}</lang> |
}</lang> |
||
<lang zkl>graphs:=T( |
|||
"0-1 1-2 2-0 3", |
|||
"1-6 1-7 1-8 2-5 2-7 2-8 3-5 3-6 3-8 4-5 4-6 4-7", |
|||
"1-4 1-6 1-8 3-2 3-6 3-8 5-2 5-4 5-8 7-2 7-4 7-6", |
|||
"1-6 7-1 8-1 5-2 2-7 2-8 3-5 6-3 3-8 4-5 4-6 4-7" |
|||
); |
|||
graphs.apply2(printColoredGraph);</lang> |
|||
{{out}} |
{{out}} |
||
<pre style="height:45ex"> |
<pre style="height:45ex"> |