BootstrapProperty computes igraph analytics function on ensemble

BootstrapProperty(
  graph,
  property,
  directed,
  selfloops,
  nsamples = 1000,
  xi = NULL,
  omega = NULL,
  model = NULL,
  m = NULL,
  seed = NULL,
  ...
)

Arguments

graph

igraph graph

property

igraph function that can be applied to a graph

directed

boolean

selfloops

boolean

nsamples

number of samples from ensemble. defaults to 1000

xi

matrix, default null

omega

matrix, default null

model

ghype model from which to extract xi and omega, default to null

m

int, number of edges to sample from model

seed

seed

...

other parameters to pass to `property`

Value

vector of length nsamples

Examples

# \donttest{
library(igraph)
#> 
#> Attaching package: ‘igraph’
#> The following objects are masked from ‘package:stats’:
#> 
#>     decompose, spectrum
#> The following object is masked from ‘package:base’:
#> 
#>     union
data('adj_karate')
result <- BootstrapProperty(adj_karate, page_rank, FALSE, FALSE, nsamples=10)
# }