Skip to contents

What changed between two versions: one row per graph, as the command strong4vm diff reports it.

Usage

vp_compare(old, new)

Arguments

old

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

new

The newer version of the same model.

Value

A tibble with graph, kept, added, removed (variable features), old_links and new_links (among the kept features), gained, lost, jaccard (links in both / links in either; 1 when nothing changed) and spearman (for requires: how alike the order of the kept features by in-degree is; NA for the others).

Examples

old <- vp_generate(vp_example("miband3_planned.uvl"), or_graph = TRUE)
new <- vp_generate(vp_example("miband3_realized.uvl"), or_graph = TRUE)
vp_compare(old, new)
#> # A tibble: 3 × 10
#>   graph     kept added removed old_links new_links gained  lost jaccard spearman
#>   <chr>    <int> <int>   <int>     <int>     <int>  <int> <int>   <dbl>    <dbl>
#> 1 requires    11     0       0        10        21     11     0   0.476    0.867
#> 2 excludes    11     0       0         3        10      7     0   0.3     NA    
#> 3 atleast…    11     0       0         0         3      3     0   0       NA