power_sim_no_singleton: Singleton-free power law sim The objective is to simulate...

Description Usage Arguments Value

Description

Singleton-free power law sim The objective is to simulate graphs with the same out-degree distribution as an input graph using the Barabasi-Albert algorithm. However, if there are nodes in the input graph that have no out-degree, then there is a non-zero probability of simulating a it is possible the simulation will produce a graph with singletons – nodes with no edges. To algorithm performs the simulation normally, the removes the singletons from the graph. Using the resulting graph as a starting graph, it continues simulating new nodes and edges but now with 0 probability of a node having no outgoing edges, until the desired amount of nodes is reached. The output graph will generally not have the same out-degree distribution, but will be close. The lower the probability of having 0 outgoing edges, the closer they will be.

Usage

1
power_sim_no_singleton(g, p, start_graph = NULL)

Arguments

g

the input igraph object.

p

the desired amount of vertices

See

start.graph algorithm in igraph's sample_pa/barabasi.game function. NULL or an igraph graph. If a graph, then the supplied graph is used as a starting graph for the preferential attachment algorithm.

Value

a simulated graph based on g.


robertness/signalgraph documentation built on May 27, 2019, 10:33 a.m.