erdos_list: Adjacency list version of undirected Erdos-Renyi random graph

Description Usage Arguments Details Value Examples

Description

erdos_list creates an adjacency list representation of an undirected Erdos-Renyi random graph.

Usage

1
erdos_list(N, avk)

Arguments

N

Number of vertices / nodes in the network.

avk

desired average degree of the network

Details

This functon generates an undirected random graph of size N, each node having average degree avk. Self and repeated edges are not permitted so if avk > (N - 1) a fully connected network will always be returned.

Value

adjacency list representation of the resultant network

Examples

1
gr <- erdos_list(1000,10)

tjtnew/graphr documentation built on May 19, 2019, 9:38 p.m.