Skip to contents

Candidate alternative groups: for each feature, its direct dependants (in the skeleton) that exclude one another. In a feature model this is the shape of an alternative group under a common parent, so the result suggests groups that a model rebuilt from the graphs could declare, whether or not the original model declares them.

Usage

vp_candidate_groups(model, min_size = 2)

Arguments

model

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

min_size

The smallest group (2 by default).

Value

A tibble with parent, group, size and feature.

Examples

band <- vp_generate(vp_example("miband3.uvl"), or_graph = TRUE)
vp_candidate_groups(band)
#> # A tibble: 2 × 4
#>   parent group  size feature
#>   <chr>  <int> <int> <chr>  
#> 1 Screen     1     2 BLEv40 
#> 2 Screen     1     2 BLEv42