g_randomised_statistic: apply graph statistic to randomised copies of a graph

Description Usage Arguments Value

Description

apply graph statistic to randomised copies of a graph

Usage

1
g_randomised_statistic(g, simulation.n, any.graph.statistic)

Arguments

g

igraph object

simulation.n

how many simulations to run

any.graph.statistic

a function that takes a graph as input and returns any object

Value

a list with two items: 'simulation': a list, length equal 'simulation.n', with the resulting statistic for each randomised graph. 'original': the graph statistic for the original input graph


mabafaba/apatternlanguage documentation built on Jan. 1, 2021, 8:28 a.m.