Skip to contents

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

Arguments

n_nodes

Number of nodes per network

n_anchors

Number of anchor correspondences

noise_level

Noise level for second network (0-1)

structure

Type of network structure: "ring", "grid", "random", "community"

permute_fraction

Fraction of nodes to permute in second network

Value

List with two networks and ground truth alignment

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
# }