Why does a feature require another? The first route is a chain of arrows of the skeleton. When the run has the at-least-one graph, further routes may appear: a excludes g, and every product has g or b, so a product with a has b.
Arguments
- model
A model, from
vp_generate()orvp_read(), in its complete or its minimal form.- a
The name of a variable feature of the model.
- b
The name of another variable feature of the model.
- max_routes
How many routes of the second kind to show at most.
Value
A tibble like that of vp_explain_conflict(), with route instead of
origin; the link "atleastone" means "every product has from or to".
Examples
band <- vp_generate(vp_example("miband3.uvl"), or_graph = TRUE)
vp_explain_requires(band, "TouchScreen", "OLED")
#> # A tibble: 5 × 5
#> route step from link to
#> <int> <int> <chr> <chr> <chr>
#> 1 1 1 TouchScreen requires BLEv42
#> 2 1 2 BLEv42 requires Screen
#> 3 1 3 Screen requires OLED
#> 4 2 1 TouchScreen excludes BT40
#> 5 2 2 BT40 atleastone OLED