lp_spm: Link prediction with the SPM

Description Usage Arguments Value Author(s) References Examples

View source: R/link_predictors.R

Description

Given a network of interest, it computes the likelihood score of interaction, for all disconnected node pairs, with the Structural Perturbation Method (SPM).

Usage

1
lp_spm(g, p_H = 0.1, epochs = 10, k = NA)

Arguments

g

igraph; The network of interest.

p_H

numeric; Fraction of network links to remove (perturbation set).

epochs

integer; Number of perturbation sets to consider.

k

integer; If k != NA and k < N (number of network nodes), the method is approximated by computing the k larget eigenvalues instead of all N.

Value

Tibble with the following columns:

nodeA

The ID of a network node.

nodeB

The ID of a network node.

scr

The likelihood score of interaction for the node pair.

Author(s)

Gregorio Alanis-Lobato galanisl@uni-mainz.de

References

Lu, L. et al. (2015) Toward link predictability of complex networks. PNAS 112(8):2325-2330

Examples

1
2
3
4
# Apply the approximated SPM link predictor to the Zachary Karate Club 
# network
spm <- lp_spm(g = karate_club, p_H = 0.1, epochs = 10, 
              k = round(sqrt(igraph::vcount(karate_club))))

galanisl/LinkPrediction documentation built on May 17, 2019, 12:10 p.m.