RDPG.Gen: generates random networks from random dot product graph model

View source: R/RCode.R

RDPG.GenR Documentation

generates random networks from random dot product graph model

Description

generates random networks from random dot product graph model

Usage

RDPG.Gen(n, K, directed = TRUE, avg.d = NULL)

Arguments

n

size of the network

K

dimension of latent space

directed

whether the network is directed or not

avg.d

average node degree of the network (in expectation)

Details

The network is generated according to special formulation mentioned in ECV paper.

Value

a list of

A

the adjacency matrix

P

the probability matrix

Author(s)

Tianxi Li, Elizaveta Levina, Ji Zhu
Maintainer: Tianxi Li tianxili@virginia.edu

References

S. J. Young and E. R. Scheinerman. Random dot product graph models for social networks. In International Workshop on Algorithms and Models for the Web-Graph, pages 138-149. Springer, 2007. T. Li, E. Levina, and J. Zhu. Network cross-validation by edge sampling. Biometrika, 107(2), pp.257-276, 2020.

Examples


dt <- RDPG.Gen(n=600,K=2,directed=TRUE)

A <- dt$A


randnet documentation built on May 31, 2023, 6:44 p.m.