Description Usage Arguments Details Value
Swaps an uncolored vertex with the vertex that has highest saturation degree if tie, choose randomly
1 | ffa.heuristical_swap(p, w, v, satur)
|
p |
vector of colors |
w |
vector of weights |
v |
the uncolored vertex which will be swapped |
satur |
vector of saturation degrees |
Steps: 1. get the first uncolored vertex 2. sort the predecessors according to the saturation degree descending 3. swap the uncolored vertex with the vertex that has highest saturation degree, if tie, choose randomly (from the tie set)
a permutation of w
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.