Skip to contents

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).

Usage

vp_tree_agreement(model, tree)

Arguments

model

A model, from vp_generate() or vp_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).

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