
Last chance! 50% off unlimited learning
Sale ends in
forest.fire.game (nodes, fw.prob, bw.factor = 1, ambs = 1, directed = TRUE,
verbose = igraph.par("verbose"))
bw.factor*fw.prob
.directed
argument
is TRUE
. The network is generated in the following way. One vertex is added at
a time. This vertex connects to (cites) ambs
vertices already
present in the network, chosen uniformly random. Now, for each cited
vertex $v$ we do the following procedure:
fw.prob
,$r$isbw.factor
.) The new vertex cites$x$outgoing neighbors
and$y$incoming neighbors of$v$, from those which are
not yet cited by the new vertex. If there are less than$x$or$y$such vertices available then we cite all of them.barabasi.game
for the basic preferential attachment
model.g <- forest.fire.game(10000, fw.prob=0.37, bw.factor=0.32/0.37)
dd1 <- degree.distribution(g, mode="in")
dd2 <- degree.distribution(g, mode="out")
if (interactive()) {
plot(seq(along=dd1)-1, dd1, log="xy")
points(seq(along=dd2)-1, dd2, col=2, pch=2)
}
Run the code above in your browser using DataLab