get_conn_probs: Check whether short hyperbolic distances are indicative of...

Description Usage Arguments Value Author(s) References Examples

Description

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.

Usage

1
get_conn_probs(net, polar, bins = 10)

Arguments

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).

Value

A data frame with the two following elements:

dist

The considered distance bins.

prob

the connection probabilities within each bin.

Author(s)

Gregorio Alanis-Lobato galanisl@uni-mainz.de

References

Papadopoulos, F. et al. (2012) Popularity versus similarity in growing networks. Nature 489(7417):537-40.

Examples

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")

galanisl/NetHypGeom documentation built on May 16, 2019, 5:36 p.m.