Graph colouring: Difference between revisions
m
→{{header|Phix}}
Line 743:
-- nodes/links are read-only here, colours is the main workspace, soln/best are
-- the results, next is 1..length(nodes), and used is length(unique(colours)).
-- On really big graphs I might consider making nodes..best static, esp colours
-- in which case you will probably also want a "colours[next] = 0" reset below.
integer c = 1
while c<best do
|