Skip to contents

A feature tree rebuilt from the skeleton: each feature gets as parent one of the features it requires directly. When there are several candidates, the least required one is chosen, and the others become cross-tree arrows.

Usage

vp_feature_tree(model)

Arguments

model

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

Value

A tibble with the columns feature, parent (NA for a feature that needs nothing), candidates (how many features it requires directly) and cross_tree (the candidates that were not chosen, separated by commas).

Examples

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