Generate Synthetic Network Alignment Data
Source:R/parrot-validation.R
generate_parrot_validation_data.RdCreates two networks with known correspondence for validating PARROT
Usage
generate_parrot_validation_data(
n_nodes = 100,
n_anchors = 10,
noise_level = 0.1,
structure = c("ring", "grid", "random", "community"),
permute_fraction = 0.3
)Examples
# \donttest{
vdata <- generate_parrot_validation_data(n_nodes = 20, n_anchors = 5)
str(vdata$ground_truth)
#> List of 3
#> $ permutation : int [1:20] 1 2 3 4 5 6 7 8 10 11 ...
#> $ inverse_perm : int [1:20] 1 2 3 4 5 6 7 8 11 9 ...
#> $ anchor_indices:List of 2
#> ..$ net1: int [1:5] 3 6 8 16 20
#> ..$ net2: int [1:5] 3 6 8 16 20
# }