The features split into groups (colours) so that no two features of a group exclude each other. Each product fits in one colour, so testing every feature at least once needs at least as many products as colours. The colouring is quick, not always the smallest possible.
Arguments
- model
A model, from
vp_generate()orvp_read(), in its complete or its minimal form.
Examples
band <- vp_generate(vp_example("miband3.uvl"), or_graph = TRUE)
vp_colouring(band)
#> # A tibble: 11 × 2
#> feature colour
#> <chr> <int>
#> 1 Screen 2
#> 2 TouchScreen 2
#> 3 OLED 2
#> 4 CapacityButton 2
#> 5 ContactlessPayment 2
#> 6 MovementFilter 3
#> 7 HeartRateSensor 1
#> 8 BLEv40 3
#> 9 BLEv42 2
#> 10 BT40 1
#> 11 NFC 2