How far the declared tree is from the meaning. For each feature whose declared parent is in the graphs: does the feature require its parent directly (the parent is one of its direct requirements in the skeleton), or do other features stand in between (it requires something that requires the parent)? Features in between mean that the tree hides a layer of the hierarchy: a "hierarchy violation" by meaning (Berger and Guo).
Arguments
- model
A model, from
vp_generate()orvp_read(), in its complete or its minimal form.- tree
The feature tree of the model, from
vp_read_uvl_tree().
Value
A tibble with feature, parent, direct (TRUE/FALSE) and
in_between (the features between them).
See also
Other hierarchy:
vp_atomic_sets(),
vp_chains(),
vp_common_dependants(),
vp_common_requirements(),
vp_depth(),
vp_downset(),
vp_false_optional(),
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_upset(),
vp_width()
Examples
band <- vp_generate(vp_example("miband3.uvl"), or_graph = TRUE)
tree <- vp_read_uvl_tree(vp_example("miband3.uvl"))
vp_tree_agreement(band, tree)
#> # A tibble: 1 × 4
#> feature parent direct in_between
#> <chr> <chr> <lgl> <chr>
#> 1 TouchScreen Screen FALSE BLEv42