sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
Coloring.MakeSourceProvide a function for k-coloring a graph.
Hash tables used to store the coloring
coloring g k colors the graph g with k colors and returns the coloring as a hash table mapping nodes to their colors. Colors are integers from 1 to k.
Worst-case time complexity is exponential. Space complexity is O(V).