Description Usage Arguments Value
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.
1 | power_sim_no_singleton(g, p, start_graph = NULL)
|
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. |
a simulated graph based on g.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.