I have 100 vertices and a function f(x,y) that computes the weight of the edge between vertex x and vertex y. f is not particularly expensive, so I could generate an indexed adjacency list with weights, if necessary.
What are some efficient, tractable methods for optimizing the n-coloring of these vertices by minimizing or maximizing the sum of the weights of all edges connecting vertices of the same color?
I imagine simulated annealing could be useful in this circumstance.
Links to code packages would also be super useful so I don't have to rewrite the wheel!
Thanks!