Skip to contents

Everything the graphs say about two features: which of the four combinations (both, only the first, only the second, neither) can occur in a valid product. For two features the answer is exact.

Usage

vp_pair(model, a, b)

Arguments

model

A model, from vp_generate() or vp_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.

Value

A tibble with four rows: combination, a, b (TRUE = selected), possible and ruled_out_by. Without the at-least-one graph, the row "neither" has possible NA.

Examples

band <- vp_generate(vp_example("miband3.uvl"), or_graph = TRUE)
vp_pair(band, "BLEv40", "BT40")
#> # A tibble: 4 × 5
#>   combination a     b     possible ruled_out_by          
#>   <chr>       <lgl> <lgl> <lgl>    <chr>                 
#> 1 both        TRUE  TRUE  FALSE    "BLEv40 excludes BT40"
#> 2 only BLEv40 TRUE  FALSE TRUE     ""                    
#> 3 only BT40   FALSE TRUE  TRUE     ""                    
#> 4 neither     FALSE FALSE TRUE     ""