Skip to contents

The links that changed between two versions, among the kept features.

Usage

vp_changed_links(old, new, graph = c("requires", "excludes", "atleastone"))

Arguments

old

The older version of a model (from vp_generate() or vp_read()).

new

The newer version of the same model.

graph

Which graph: "requires", "excludes" or "atleastone" (the last one needs or_graph = TRUE in vp_generate()).

Value

A tibble with from, to and change ("gained" or "lost").

Examples

old <- vp_generate(vp_example("miband3_planned.uvl"), or_graph = TRUE)
new <- vp_generate(vp_example("miband3_realized.uvl"), or_graph = TRUE)
vp_changed_links(old, new, "requires")
#> # A tibble: 11 × 3
#>    from           to              change
#>    <chr>          <chr>           <chr> 
#>  1 MovementFilter Screen          gained
#>  2 MovementFilter OLED            gained
#>  3 MovementFilter CapacityButton  gained
#>  4 MovementFilter BLEv40          gained
#>  5 BLEv40         Screen          gained
#>  6 BLEv40         OLED            gained
#>  7 BLEv40         CapacityButton  gained
#>  8 BLEv42         Screen          gained
#>  9 BLEv42         OLED            gained
#> 10 BLEv42         CapacityButton  gained
#> 11 BLEv42         HeartRateSensor gained