I have 100 vertices and a function f (x, y) that calculates the weight of an edge between vertex x and vertex y. f is not particularly expensive, so I could create an index adjacency list with weights if necessary.
What are some effective, acceptable methods for optimizing the n-coloring of these vertices by minimizing or maximizing the sum of the weights of all the edges connecting the vertices of the same color?
I suggest that simulated annealing may be useful in this case.
Links to code packages will also be very useful, so I donβt need to rewrite the wheel!
Thanks!
source share