Requirements explained by a conflict and an at-least-one line
Source:R/conflicts.R
vp_requires_from_conflicts.RdRequirements that follow from a conflict and an at-least-one line: if f excludes g, and every product has g or h, then f requires h. The skeleton keeps such an arrow when no chain of arrows explains it; with the three graphs it is explained after all. Needs the at-least-one graph.
Arguments
- model
A model, from
vp_generate()orvp_read(), in its complete or its minimal form.
Value
A tibble with one row per arrow between different atomic sets that
has such an explanation: from, to, via (one g) and in_skeleton
(TRUE when no chain of arrows explains it: only this route does).
Examples
band <- vp_generate(vp_example("miband3.uvl"), or_graph = TRUE)
vp_requires_from_conflicts(band)
#> # A tibble: 5 × 4
#> from to via in_skeleton
#> <chr> <chr> <chr> <lgl>
#> 1 TouchScreen Screen BT40 FALSE
#> 2 ContactlessPayment Screen BT40 FALSE
#> 3 MovementFilter Screen BT40 FALSE
#> 4 BLEv40 Screen BT40 TRUE
#> 5 BLEv42 Screen BT40 TRUE