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.
Arguments
- model
A model, from
vp_generate()orvp_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).
See also
Other hierarchy:
vp_atomic_sets(),
vp_chains(),
vp_common_dependants(),
vp_common_requirements(),
vp_depth(),
vp_downset(),
vp_false_optional(),
vp_foundations(),
vp_implied_requires(),
vp_largest_free_set(),
vp_largest_unrelated_set(),
vp_leaves(),
vp_levels(),
vp_longest_chain(),
vp_longest_decision_chain(),
vp_redundant_candidates(),
vp_skeleton(),
vp_tree_agreement(),
vp_upset(),
vp_width()
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 ""