Description Usage Arguments Value Author(s) References Examples
View source: R/link_predictors.R
Given a network of interest, it computes the likelihood score of interaction, for all disconnected node pairs, based on a Hierarchical Random Graph model (HRG).
1 | lp_hrg(g, samples = 1000)
|
g |
igraph; The network of interest. |
samples |
integer; Number of HRG models to consider. |
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. |
Gregorio Alanis-Lobato galanisl@uni-mainz.de
Clauset, A. et al. (2008) Hierarchical structure and the prediction of missing links in networks. Nature 453(7191):98-101
1 2 | # Apply the HRG link predictor to the Zachary Karate Club network
hrg <- lp_hrg(g = karate_club, samples = 100)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.