Jump to content

Graph colouring: Difference between revisions

m
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
7,820

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.