Skip to contents

The smallest set of chains that covers all the features (Dilworth's theorem): each chain goes from a feature to one it requires, and so on. There are as many chains as the width.

Usage

vp_chains(model)

Arguments

model

A model, from vp_generate() or vp_read(), in its complete or its minimal form.

Value

A tibble with the columns chain, position and feature.

Examples

band <- vp_generate(vp_example("miband3.uvl"), or_graph = TRUE)
vp_chains(band)
#> # A tibble: 8 × 3
#>   chain position feature           
#>   <int>    <int> <chr>             
#> 1     1        1 ContactlessPayment
#> 2     1        2 TouchScreen       
#> 3     1        3 BLEv42            
#> 4     1        4 HeartRateSensor   
#> 5     2        1 MovementFilter    
#> 6     2        2 BLEv40            
#> 7     2        3 Screen            
#> 8     3        1 BT40