False-optional features: optional features that are not really optional. Two definitions are in use: the feature is in every product (Benavides et al.; it is then core), or it is selected whenever its parent is (Nieke et al.; the parent then requires it). The graphs decide both exactly.
Arguments
- model
A model, from
vp_generate()orvp_read(), in its complete or its minimal form.- tree
The feature tree, from vp_read_uvl_tree().
Value
A tibble with one row per optional feature that is false-optional by
either definition: feature, parent, in_every_product (first
definition) and whenever_parent (second; NA when the parent is not in the
graphs, for example because it is abstract).
See also
Other hierarchy:
vp_atomic_sets(),
vp_chains(),
vp_common_dependants(),
vp_common_requirements(),
vp_depth(),
vp_downset(),
vp_feature_tree(),
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)
tree <- vp_read_uvl_tree(vp_example("miband3.uvl"))
vp_false_optional(band, tree)
#> # A tibble: 0 × 4
#> # ℹ 4 variables: feature <chr>, parent <chr>, in_every_product <lgl>,
#> # whenever_parent <lgl>