RDPG.Gen | R Documentation |

generates random networks from random dot product graph model

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

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

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

a list of

`A ` |
the adjacency matrix |

`P ` |
the probability matrix |

Tianxi Li, Elizaveta Levina, Ji Zhu

Maintainer: Tianxi Li tianxili@virginia.edu

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.

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

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.