Description Usage Arguments Value Author(s) References Examples
Given a complex network and the hyperbolic coordinates of its nodes, compute the fraction of existing edges between all nodes whose pairwise distances are within the considered bin.
1 | get_conn_probs(net, polar, bins = 10)
|
net |
igraph; A complex network. |
polar |
data frame; Polar coordinates (r, theta) of all nodes in the network. |
bins |
numeric; The number of distance bins to consider (default = 10). |
A data frame with the two following elements:
dist |
The considered distance bins. |
prob |
the connection probabilities within each bin. |
Gregorio Alanis-Lobato galanisl@uni-mainz.de
Papadopoulos, F. et al. (2012) Popularity versus similarity in growing networks. Nature 489(7417):537-40.
1 2 3 4 5 6 7 | # Generate an artificial network with the PS model
net <- ps_model(500, 6, 2.5, 0)
# Get the connection probability curve and plot it
conn <- get_conn_probs(net$network, net$polar, 15)
plot(conn$dist, conn$prob, pch = 16, xlab = "Hyperbolic distance", ylab = "Connection probability")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.