Rnhm: Row-Normalized Hyperlink Matrix

View source: R/Rnhm.R

RnhmR Documentation

Row-Normalized Hyperlink Matrix

Description

This function creates a sparse row-normalized hyperlink matrix.

Usage

Rnhm(A)

Arguments

A

network adjacency matrix

Details

This function creates a sparse row-normalized hyperlink matrix, defined in more detail in [1].

Value

row-normalized hyperlink matrix

References

[1] Langville AN, Meyer CD (2006). "Google's PageRank and Beyond: The Science of Search Engine Rankings." Princeton University Press, Princeton.

Examples

# Generate an arbitrary 100 by 100 adjacency matrix with zeros and ones
# Remove loops
A <- matrix(rbinom(100 * 100, 1, 0.2), ncol = 100, nrow = 100)
diag(A) <- 0

# Calculate a row-normalized hyperlink matrix
Rnhm(A)

leb-fmvz-usp/epinemo documentation built on Nov. 27, 2022, 10:58 p.m.