ba.game | R Documentation |
ba.game()
was renamed to sample_pa()
to create a more
consistent API.
ba.game(
n,
power = 1,
m = NULL,
out.dist = NULL,
out.seq = NULL,
out.pref = FALSE,
zero.appeal = 1,
directed = TRUE,
algorithm = c("psumtree", "psumtree-multiple", "bag"),
start.graph = NULL
)
n |
Number of vertices. |
power |
The power of the preferential attachment, the default is one, i.e. linear preferential attachment. |
m |
Numeric constant, the number of edges to add in each time step This
argument is only used if both |
out.dist |
Numeric vector, the distribution of the number of edges to
add in each time step. This argument is only used if the |
out.seq |
Numeric vector giving the number of edges to add in each time step. Its first element is ignored as no edges are added in the first time step. |
out.pref |
Logical, if true the total degree is used for calculating the citation probability, otherwise the in-degree is used. |
zero.appeal |
The ‘attractiveness’ of the vertices with no adjacent edges. See details below. |
directed |
Whether to create a directed graph. |
algorithm |
The algorithm to use for the graph generation.
|
start.graph |
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.